Esempio n. 1
0
 def test_nonexistent_playlists(self):
     sources = ["does not exist"]
     files, excs = mod.parse_playlists(sources)
     self.assertEquals(files, {})
     self.assertTrue(excs[0][0], "does not exist")
     self.assertTrue(isinstance(excs[0][1], IOError))
Esempio n. 2
0
 def test_synthetic_playlists(self):
     sources, output = synthetic_playlists_fixtures()
     files, excs = mod.parse_playlists(sources)
     self.assertEquals(files, output)
     self.assertEquals(excs, [])