def test_nonequality(self):
        """
        Two different L{NamedConstant} instances do not compare equal to each
        other.
        """
        first = NamedConstant()
        first._realize(self.container, "bar", None)
        second = NamedConstant()
        second._realize(self.container, "bar", None)
        self.assertFalse(first == second)
        self.assertTrue(first != second)

        Two different L{NamedConstant} instances do not compare equal to each
        other.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_constants.py