コード例 #1
0
    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)
コード例 #2
0
    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)
コード例 #3
0
    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)