Update setup and teardown for tests

This commit is contained in:
Thomas Adamcik 2010-02-18 02:55:24 +01:00
parent e9d3c8334e
commit 82951d1dc8

View File

@ -23,6 +23,9 @@ class BaseCurrentPlaylistControllerTest(object):
assert len(self.uris) >= 3, 'Need at least three urls to run tests.'
def tearDown(self):
self.backend.destroy()
def test_add(self):
for uri in self.uris:
self.controller.add(uri)
@ -198,6 +201,8 @@ class BasePlaybackControllerTest(object):
self.backend = self.backend_class()
self.playback = self.backend.playback
assert len(self.uris) >= 3, 'Need at least three urls to run tests.'
def tearDown(self):
self.backend.destroy()