'Helper to implement tests for value filtering of KEYWORD and UNKEYWORD
queries.
@param keyword: A native string giving the name of the L{imap4.Query}
keyword argument to test.'

def _keywordFilteringTest(self, keyword):

    self.assertEqual(('(%s    twistedrocks)' % (keyword.upper(),)), imap4.Query(**{keyword: 'twisted    (){%*"\\]    rocks'}))
    self.assertEqual(('(%s    twistedrocks)' % (keyword.upper(),)), imap4.Query(**{keyword: ('twisted    %s    rocks' % (''.join((chr(ch) for ch in range(33))),))}))
