def test_export_to_json(self): data1 = Table.from_json(self.input['json']) data1.to_json(self.tmp_name) data2 = Table.from_json(self.tmp_name) self.assertEqual(data1, data2) os.remove(self.tmp_name)
def test_init_from_json(self): data = Table.from_json(self.input['json']) self.assertEqual(str(data), self.init_result)