Example #1
0
 def test_compress_bound_invalid(self):
     with self.assertRaises(ValueError):
         # 0x7E000000 is currently the max allowed by lz4
         lz4.compress_bound(0x7E000000+1)
Example #2
0
 def test_compress_bound_invalid(self):
     with self.assertRaises(ValueError):
         # 0x7E000000 is currently the max allowed by lz4
         lz4.compress_bound(0x7E000000 + 1)
Example #3
0
 def test_compress_bound(self):
     # The value of 17 could change with future versions of lz4.
     self.assertEqual(lz4.compress_bound(1), 17)
Example #4
0
 def test_compress_bound(self):
     # The value of 17 could change with future versions of lz4.
     self.assertEqual(lz4.compress_bound(1), 17)