'The I{imap4-utf-7} can be used to encode a unicode string into a byte
string according to the IMAP4 modified UTF-7 encoding rules.'

def test_encode(self):

    for (input, output) in self.tests:
        self.assertEqual(input.encode('imap4-utf-7'), output)
