def test_nonDefautFields(self):
        """
        L{dns._compactRepr} displays field values if they differ from their
        defaults.
        """
        m = self.messageFactory(field1=10, field2=20)
        self.assertEqual(
            '<Foo '
            'field1=10 '
            'field2=20 '
            "alwaysShowField='AS' "
            'flags=flagTrue'
            '>',
            repr(m),
        )

        L{dns._compactRepr} displays field values if they differ from their
        defaults.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py