Beispiel #1
0
 def testGetLyricsXML(self):
     '''testGetLyricsXML - Ensures the lyrics are fetched correctly'''
     lyrics = LyricsDownloader('On A Plain', 'Nirvana', False)
     lyrics._clean_up_artist_title()
     test_xml = urllib.urlopen(THIS_DIR +
                               '/data/LyricsDownloader/lyrics_xml').read()
     self.assertEqual(lyrics._get_lyrics_xml(), test_xml)
 def testGetLyricsXML(self):
     '''testGetLyricsXML - Ensures the lyrics are fetched correctly'''
     lyrics = LyricsDownloader('On A Plain', 'Nirvana', False)
     lyrics._clean_up_artist_title()
     test_xml = urllib.urlopen(THIS_DIR +
         '/data/LyricsDownloader/lyrics_xml').read()
     self.assertEqual(lyrics._get_lyrics_xml(), test_xml)