Esempio n. 1
0
 def test_load_non_ascii_announce(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)
     announce = '\n'.join([ann for ann in shownotes.create_announcement()])
     self.assertIn(u"The Ground of All Being by Zarathustra from Yūgen", announce)
     yield self.assertEqual(response_announce_nonascii, notes)
Esempio n. 2
0
 def test_load_ascii_announce(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)
     announce = '\n'.join([ann for ann in shownotes.create_announcement()])
     self.assertIn('Katatonia by 108 Not from the album 108 Not', announce)
     self.assertIn('Repent by Severed Fifth from Liberate', announce)
     self.assertIn('How To Get Signed To Sumerian Records (Redux) by Spiral Mountain from the album (Single)', announce)
     yield self.assertEqual(response_announce, notes)