10 PKG =
'rosbridge_library'
11 NAME =
'test_compression'
20 bytes = list(range(128)) * 10000
21 string = str(bytearray(bytes))
22 encoded = pngcompression.encode(string)
23 self.assertNotEqual(string, encoded)
26 bytes = list(range(128)) * 10000
27 string = str(bytearray(bytes))
28 encoded = pngcompression.encode(string)
29 self.assertNotEqual(string, encoded)
30 decoded = pngcompression.decode(encoded)
31 self.assertEqual(string, decoded)
34 if __name__ ==
'__main__':
35 rosunit.unitrun(PKG, NAME, TestCompression)