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