def _test(self, text):
     assert_true(isinstance(compress_text(text), str))
     text = text.encode('UTF-8')
     assert_equal(_compress(text), zlib.compress(text, 9))
Пример #2
0
 def _test(self, text):
     assert_true(isinstance(compress_text(text), str))
     text = text.encode('UTF-8')
     assert_equal(_compress(text), zlib.compress(text, 9))
Пример #3
0
 def _test(self, text):
     text = text.encode('UTF-8')
     assert_equals(_compress(text), zlib.compress(text, 9))