def test_statusRequestHelper(self):
        """
        L{imap4.statusRequestHelper} builds a L{dict} mapping the
        requested status names to values extracted from the provided
        L{IMailboxIMAP}'s.
        """
        mbox = SimpleMailbox()

        expected = {
            'MESSAGES': mbox.getMessageCount(),
            'RECENT': mbox.getRecentCount(),
            'UIDNEXT': mbox.getUIDNext(),
            'UIDVALIDITY': mbox.getUIDValidity(),
            'UNSEEN': mbox.getUnseenCount(),
        }

        result = imap4.statusRequestHelper(mbox, expected.keys())

        self.assertEqual(expected, result)

        L{imap4.statusRequestHelper} builds a L{dict} mapping the
        requested status names to values extracted from the provided
        L{IMailboxIMAP}'s.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py