def test_equality(self):
        """
        Instances of a class that is decorated by C{comparable} support
        equality comparisons.
        """
        # Make explicitly sure we're using ==:
        self.assertTrue(Comparable(1) == Comparable(1))
        self.assertFalse(Comparable(2) == Comparable(1))

        Instances of a class that is decorated by C{comparable} support
        equality comparisons.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_compat.py