def test_read_jsonlz4_no_mozilla_header(self): path = 'fixtures/fixture.lz4' self.compress_fixture(path, False) actual = client.read_jsonlz4(path) self.assertEqual(None, actual) os.remove(path)
def test_read_jsonlz4(self): path = 'fixtures/fixture.lz4' expected = json.loads("{\"test\": \"test\"}") self.compress_fixture(path, True) actual = client.read_jsonlz4(path) self.assertEqual(expected, actual) os.remove(path)