def test_queryWithInteger(self):
        """
        When passed an L{int}, L{imap4.Query} returns a query
        containing a quoted integer.
        """
        query = imap4.Query(messages=1)
        self.assertEqual(query, '(MESSAGES "1")')

        When passed an L{int}, L{imap4.Query} returns a query
        containing a quoted integer.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py