def testParseJson(self): path = os.path.abspath('./test/group.json').replace(os.sep, '/') p = open(path) result = PixivGroup(p) self.assertEqual(len(result.imageList), 34) self.assertEqual(len(result.externalImageList), 2) self.assertEqual(result.maxId, 626288)
def testParseJson(self): path = './test/group.json' p = open(path) result = PixivGroup(p) self.assertEqual(len(result.imageList), 35) self.assertEqual(len(result.externalImageList), 1) self.assertEqual(result.maxId, 920234)
def testParseJson(self): path = './test.new/group.json' p = open(path) result = PixivGroup(p) self.assertEqual(len(result.imageList), 34) self.assertEqual(len(result.externalImageList), 2) self.assertEqual(result.maxId, 626288)