def testCompression(self): for compress in compressors.keys(): for a in range(8): out = StringIO() serial = Serializator(out) b = random(2**a) b.compressor = compress serial.dump(b) #print a, 2**a, compress self.assertEqual(b, serial.load())
def setUp(self): self.b = random(2048 / 64)