def test_equality(self):
        """
        L{DefaultFormattingState}s are always equal to other
        L{DefaultFormattingState}s.
        """
        self.assertEqual(
            DefaultFormattingState(),
            DefaultFormattingState())
        self.assertNotEqual(
            DefaultFormattingState(),
            'hello')

        L{DefaultFormattingState}s are always equal to other
        L{DefaultFormattingState}s.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_textattributes.py