~facundo/ubuntuone-client/fix-svfilenew-conflict

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_status_listener.py

  • Committer: Facundo Batista
  • Date: 2011-04-04 12:31:43 UTC
  • mfrom: (922.1.9 ubuntuone-client)
  • Revision ID: facundo@taniquetil.com.ar-20110404123143-mobua5abcpinz0o2
TrunkĀ mergedĀ in

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        self.assertIn(call, self.status_frontend.call_log)
251
251
 
252
252
    @defer.inlineCallbacks
253
 
    def test_queue_added_is_forwarded(self):
254
 
        """A misc queue added event is forwarded."""
255
 
        fake_command = object()
256
 
 
257
 
        d = defer.Deferred()
258
 
        self._listen_for('SYS_QUEUE_ADDED', d.callback)
259
 
        self.main.event_q.push('SYS_QUEUE_ADDED', command=fake_command)
260
 
        yield d
261
 
 
262
 
        call = ("queue_added", (fake_command,), {})
263
 
        self.assertIn(call, self.status_frontend.call_log)
264
 
 
265
 
    @defer.inlineCallbacks
266
 
    def test_queue_removed_is_forwarded(self):
267
 
        """A queue removed event is forwarded."""
268
 
        fake_command = object()
269
 
 
270
 
        d = defer.Deferred()
271
 
        self._listen_for('SYS_QUEUE_REMOVED', d.callback)
272
 
        self.main.event_q.push('SYS_QUEUE_REMOVED', command=fake_command)
273
 
        yield d
274
 
 
275
 
        call = ("queue_removed", (fake_command,), {})
276
 
        self.assertIn(call, self.status_frontend.call_log)
277
 
 
278
 
    @defer.inlineCallbacks
279
253
    def test_queue_done_is_forwarded(self):
280
254
        """A queue done event is forwarded."""
281
255
        d = defer.Deferred()