def test_inequality(self):
        """
        L{Name} instances are not equal as long as they have different
        L{Name.name} attributes.
        """
        name1 = dns.Name(b"foo.bar")
        name2 = dns.Name(b"bar.foo")
        self.assertNotEqual(name1, name2)

        L{Name} instances are not equal as long as they have different
        L{Name.name} attributes.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py