Beispiel #1
0
    def test_url_kanjani8(self):
        url = 'http://www.kget.jp/lyric/185146/'
        obj = Lyric(url)
        obj.parse()

        self.assertEqual(obj.title, u'ビースト!!')
        self.assertEqual(obj.artist, u'関ジャニ∞')
        self.assertEqual(obj.lyricist, u'錦戸亮')
        self.assertEqual(obj.composer, u'朱鷺羽ソウ')
        self.assertEqual(len(obj.lyric), 924)
Beispiel #2
0
    def test_url_maaya(self):
        url = 'http://www.kget.jp/lyric/11066/'
        obj = Lyric(url)
        obj.parse()

        self.assertEqual(obj.title, u'tune the rainbow')
        self.assertEqual(obj.artist, u'坂本真綾')
        self.assertEqual(obj.lyricist, u'岩里祐穂')
        self.assertEqual(obj.composer, u'菅野よう子')
        self.assertEqual(len(obj.lyric), 520)
Beispiel #3
0
    def test_url_zutto(self):
        url = 'http://www.kget.jp/lyric/188989/'
        obj = Lyric(url)
        obj.parse()

        self.assertEqual(obj.title, u'ずっと feat.HAN-KUN & TEE')
        self.assertEqual(obj.artist, u'SPICY CHOCOLATE, HAN-KUN, TEE')
        self.assertEqual(obj.lyricist, u'HAN-KUN, TEE')
        self.assertEqual(obj.composer, u'DJ CONTROLER, U.M.E.D.Y., WolfJunk')
        self.assertEqual(len(obj.lyric), 769)