Update MPD/dispatcher

This commit is contained in:
Stein Magnus Jodal 2011-03-19 17:57:06 +01:00
parent 0d57a74cb3
commit 4e82730732

View File

@ -4,12 +4,14 @@ from mopidy.backends.dummy import DummyBackend
from mopidy.frontends.mpd import dispatcher
from mopidy.frontends.mpd.exceptions import MpdAckError
from mopidy.frontends.mpd.protocol import request_handlers, handle_pattern
from mopidy.mixers.dummy import DummyMixer
class MpdDispatcherTest(unittest.TestCase):
def setUp(self):
self.b = DummyBackend(mixer_class=DummyMixer)
self.h = dispatcher.MpdDispatcher(backend=self.b)
self.b = DummyBackend.start().proxy()
self.h = dispatcher.MpdDispatcher()
def tearDown(self):
self.b.stop().get()
def test_register_same_pattern_twice_fails(self):
func = lambda: None