Ensure that renamed playlists aren't created

This commit is contained in:
Thomas Adamcik 2010-04-29 20:01:35 +02:00
parent 42e96ebdcd
commit a0fae47e90

View File

@ -958,6 +958,8 @@ class BaseStoredPlaylistsControllerTest(object):
def test_rename_unknown_playlist(self):
self.stored.rename(Playlist(), 'test2')
test = lambda: self.stored.get(name='test2')
self.assertRaises(LookupError, test)
def test_save(self):
# FIXME should we handle playlists without names?