def test_stringRepresentationWithWildcards(self):
        """
        In a L{MessageSet}, in the presence of wildcards, if the
        highest message id is known, the wildcard should get replaced
        by that high value.
        """
        inputs = [
            imap4.parseIdList(b'*'),
            imap4.parseIdList(b'1:*'),
            imap4.parseIdList(b'3:*', 6),
            imap4.parseIdList(b'*:2', 6),
        ]

        outputs = [
            "*",
            "1:*",
            "3:6",
            "2:6",
        ]

        for i, o in zip(inputs, outputs):
            self.assertEqual(str(i), o)

        In a L{MessageSet}, in the presence of wildcards, if the
        highest message id is known, the wildcard should get replaced
        by that high value.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py