class Test_JsonSplit(unittest.TestCase): """ Check json_split """ def setUp(self): self.split_json_file = APP_ROOT + "/../../Data/wiki_image/enwiki-20080103-abstract0.json" self.answer_json = APP_ROOT + "/../../Data/wiki_image/answer_json_split1.json" self.out_json = APP_ROOT + "/../../Data/wiki_image/answer_json_split1.json" def test_split_data(self): self.json_split = JsonSplit(self.split_json_file) self.json_split.input() self.assertEqual(filecmp.cmp(self.answer_json, self.out_json), True)
def test_split_data(self): self.json_split = JsonSplit(self.split_json_file) self.json_split.input() self.assertEqual(filecmp.cmp(self.answer_json, self.out_json), True)