def test_nonDefaultSections(self):
        """
        L{dns._compactRepr} displays sections which differ from their defaults.
        """
        m = self.messageFactory()
        m.section1 = [1, 1, 1]
        m.section2 = [2, 2, 2]
        self.assertEqual(
            '<Foo '
            "alwaysShowField='AS' "
            'flags=flagTrue '
            'section1=[1, 1, 1] '
            'section2=[2, 2, 2]'
            '>',
            repr(m),
        )

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