Move test of precondition for tests to assert in setup

This commit is contained in:
Thomas Adamcik 2010-02-13 21:19:04 +01:00
parent 2f49abcd9c
commit f4f283e741

View File

@ -20,8 +20,7 @@ class BaseCurrentPlaylistControllerTest(object):
self.controller = self.backend.current_playlist
self.playback = self.backend.playback
def test_uri_set(self):
self.assert_(len(self.uris) >= 3)
assert len(self.uris) >= 3, 'Need at least three urls to run tests.'
def test_add(self):
for uri in self.uris: