Esempio n. 1
0
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)
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)
Esempio n. 4
0
 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)