Skip to content

Commit

Permalink
Adds artist Variations as another list of names
Browse files Browse the repository at this point in the history
Github #12 found some artists that had only one Variations so it didn't parse a list
  • Loading branch information
hufman committed May 5, 2015
1 parent 963f82f commit 0ce1a9c
Show file tree
Hide file tree
Showing 3 changed files with 2,040 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ def test_rookies(self):
self.assertFalse('link' in rookies['info']['Former Members'][0])
self.assertEqual(u'2RASH', rookies['info']['Former Members'][0]['names']['en'])

def test_horie(self):
horie_code = file(os.path.join(base, 'artist_horie.html'), 'r').read()
horie = artist.parse_page(horie_code)
self.assertEqual(1, len(horie['info']['Variations']))
self.assertEqual(u'白河ことり', horie['info']['Variations'][0]['names']['en'])

if __name__ == '__main__':
unittest.main()
Loading

0 comments on commit 0ce1a9c

Please sign in to comment.