예제 #1
0
    def test_url_02(self):
        url = 'http://music.j-total.net/data/026ha/048_hata_motohiro/010.html'
        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), 1267)
예제 #2
0
    def test_url_01(self):
        url = 'http://music.j-total.net/data/013su/029_sukima_switch/004.html'
        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), 1308)