def test_to_from_json_line_delimited_compressed(self): path = 'tmp/test.json.gz' self.tbl.to_json(path, line_delimited=True) result_tbl = Table.from_json(path, line_delimited=True) assert_matching_tables(self.tbl, result_tbl) os.remove(path)
def test_to_from_json_compressed(self): path = 'tmp/test.json.gz' self.tbl.to_json(path) result_tbl = Table.from_json(path) assert_matching_tables(self.tbl, result_tbl) os.remove(path)
def test_to_from_temp_json_compressed(self): path = self.tbl.to_json(temp_file_compression='gzip') result_tbl = Table.from_json(path) assert_matching_tables(self.tbl, result_tbl)
def test_to_from_temp_json(self): path = self.tbl.to_json() result_tbl = Table.from_json(path) assert_matching_tables(self.tbl, result_tbl)