def testEncodeDecode(self):
    s = 'the recalcitrant jamessan tests his scramble function'
    self.assertNotRegexp('encode aldkfja foobar', 'LookupError')
    self.assertNotRegexp('decode asdflkj foobar', 'LookupError')
    self.assertResponse(('decode zlib [encode zlib %s]' % s), s)
    self.assertRegexp('decode base64 $BCfBg7;9D;R(B', 'padded with')
def testEncodeDecode(self):
    s = 'the recalcitrant jamessan tests his scramble function'
    self.assertNotRegexp('encode aldkfja foobar', 'LookupError')
    self.assertNotRegexp('decode asdflkj foobar', 'LookupError')
    self.assertResponse(('decode zlib [encode zlib %s]' % s), s)
    self.assertRegexp('decode base64 $BCfBg7;9D;R(B', 'padded with')