def test_url_shiranai(self): url = 'http://www.kasi-time.com/item-43855.html' obj = Lyric(url) obj.parse() self.assertEqual(obj.title, u'君の知らない物語') self.assertEqual(obj.artist, u'supercell') self.assertEqual(obj.lyricist, u'ryo(supercell)') self.assertEqual(obj.composer, u'ryo(supercell)') self.assertEqual(obj.arranger, u'ryo(supercell)') self.assertEqual(len(obj.lyric), 565)
def test_url_guren(self): url = 'http://www.kasi-time.com/item-67546.html' obj = Lyric(url) obj.parse() self.assertEqual(obj.title, u'紅蓮の弓矢') self.assertEqual(obj.artist, u'Linked Horizon') self.assertEqual(obj.lyricist, u'Revo') self.assertEqual(obj.composer, u'Revo') self.assertEqual(obj.arranger, u'Revo') self.assertEqual(len(obj.lyric), 808)