Пример #1
0
 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()
Пример #2
0
 def setUp(self):
     self.backend = DummyBackend.start().proxy()
     self.mixer = DummyMixer.start().proxy()
     self.dispatcher = MpdDispatcher()
Пример #3
0
 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
Пример #4
0
 def setUp(self):
     self.backend = DummyBackend.start().proxy()
     self.mixer = DummyMixer.start().proxy()
     self.dispatcher = MpdDispatcher()
Пример #5
0
 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
Пример #6
0
 def setUp(self):
     objects.exit_process = mock.Mock()
     objects.MprisObject._connect_to_dbus = mock.Mock()
     self.backend = DummyBackend.start().proxy()
     self.mpris = objects.MprisObject()
Пример #7
0
 def setUp(self):
     self.backend = DummyBackend.start().proxy()
Пример #8
0
 def setUp(self):
     objects.exit_process = mock.Mock()
     objects.MprisObject._connect_to_dbus = mock.Mock()
     self.backend = DummyBackend.start().proxy()
     self.mpris = objects.MprisObject()
Пример #9
0
 def setUp(self):
     self.backend = DummyBackend.start().proxy()
     self.mixer = DummyMixer.start().proxy()
     self.session = server.MpdSession(None, None, (None, None))