Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
    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)
Beispiel #4
0
    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)