Test whether saving an empty playlist file raises an error.
(self)
| 30 | """Tests the M3UFile class.""" |
| 31 | |
| 32 | def test_playlist_write_empty(self): |
| 33 | """Test whether saving an empty playlist file raises an error.""" |
| 34 | tempdir = bytestring_path(mkdtemp()) |
| 35 | the_playlist_file = path.join(tempdir, b"playlist.m3u8") |
| 36 | m3ufile = M3UFile(the_playlist_file) |
| 37 | with pytest.raises(EmptyPlaylistError): |
| 38 | m3ufile.write() |
| 39 | rmtree(tempdir) |
| 40 | |
| 41 | def test_playlist_write(self): |
| 42 | """Test saving ascii paths to a playlist file.""" |
nothing calls this directly
no test coverage detected