def _test(self, text):
     assert_true(isinstance(compress_text(text), str))
     text = text.encode('UTF-8')
     assert_equal(_compress(text), zlib.compress(text, 9))
 def _test(self, text):
     assert_true(isinstance(compress_text(text), str))
     text = text.encode('UTF-8')
     assert_equal(_compress(text), zlib.compress(text, 9))
 def _test(self, text):
     text = text.encode('UTF-8')
     assert_equals(_compress(text), zlib.compress(text, 9))