def setUp(self): self.backend = DummyBackend.start().proxy() self.backend.current_playlist.append([ Track(uri='a'), Track(uri='b'), Track(uri='c'), Track(uri='d'), Track(uri='e'), Track(uri='f')]) self.mixer = DummyMixer.start().proxy() self.mpd = dispatcher.MpdDispatcher()
def setUp(self): self.backend = DummyBackend.start().proxy() self.mixer = DummyMixer.start().proxy() self.dispatcher = MpdDispatcher()
def setUp(self): objects.MprisObject._connect_to_dbus = mock.Mock() self.mixer = DummyMixer.start().proxy() self.backend = DummyBackend.start().proxy() self.mpris = objects.MprisObject() self.mpris._backend = self.backend
def setUp(self): objects.exit_process = mock.Mock() objects.MprisObject._connect_to_dbus = mock.Mock() self.backend = DummyBackend.start().proxy() self.mpris = objects.MprisObject()
def setUp(self): self.backend = DummyBackend.start().proxy()
def setUp(self): self.backend = DummyBackend.start().proxy() self.mixer = DummyMixer.start().proxy() self.session = server.MpdSession(None, None, (None, None))