def test_load_non_ascii_shownotes(self): path = 'tests/test_files' aud_file = join_path(path, 'open_metalcast_instrumetalcast_005.aup') json_file = join_path(path, 'playlist_instr_005.json') shownotes = ShowNotes(json_file, aud_file) notes = '\n'.join([note for note in shownotes.create_shownotes()]) self.assertIn(u"The Ground of All Being by Zarathustra from Yūgen", notes) yield self.assertEqual(response_shownotes_nonascii, notes)
def test_load_ascii_shownotes(self): path = 'tests/test_files' aud_file = join_path(path, 'open_metalcast_043.aup') json_file = join_path(path, 'playlist_043.json') shownotes = ShowNotes(json_file, aud_file) notes = '\n'.join([note for note in shownotes.create_shownotes()]) self.assertIn('Katatonia by 108 Not from 108 Not', notes) self.assertIn('Repent by Severed Fifth from Liberate', notes) self.assertIn('How To Get Signed To Sumerian Records (Redux) by Spiral Mountain from (Single)', notes) yield self.assertEqual(response_shownotes, notes)