def test_equality(self):
        """
        L{Name} instances are equal as long as they have the same value for
        L{Name.name}, regardless of the case.
        """
        name1 = dns.Name(b"foo.bar")
        name2 = dns.Name(b"foo.bar")
        self.assertEqual(name1, name2)

        name3 = dns.Name(b"fOO.bar")
        self.assertEqual(name1, name3)

        L{Name} instances are equal as long as they have the same value for
        L{Name.name}, regardless of the case.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py