Exemple #1
0
    def test_url_02(self):
        url = 'http://www.animap.jp/kasi/showkasi.php?surl=dk130730_30'
        obj = Lyric(url)
        obj.parse()

        self.assertEqual(obj.title, u'ViViD')
        self.assertEqual(obj.artist, u"May'n")
        self.assertEqual(obj.lyricist, u'藤林聖子')
        self.assertEqual(obj.composer, u'秋田博之')
        self.assertEqual(len(obj.lyric), 788)
Exemple #2
0
    def test_url_01(self):
        url = 'http://www.animap.jp/kasi/showkasi.php?surl=B38260'
        obj = Lyric(url)
        obj.parse()

        self.assertEqual(obj.title, u"Don't be long")
        self.assertEqual(obj.artist, u'水樹奈々')
        self.assertEqual(obj.lyricist, u'矢吹俊郎')
        self.assertEqual(obj.composer, u'矢吹俊郎')
        self.assertEqual(len(obj.lyric), 541)