~nataliabidart/ubuntuone-client/improve-error-handling

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_action_queue.py

  • Committer: natalia.bidart at canonical
  • Date: 2010-04-08 16:42:46 UTC
  • Revision ID: natalia.bidart@canonical.com-20100408164246-05whi78qrivxw43r
Using generic error handler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1674
1674
 
1675
1675
        self.action_queue.client.protocol_version = raise_this(exc)
1676
1676
        yield self.action_queue.check_version()
1677
 
        event = ('SYS_PROTOCOL_VERSION_ERROR', (), {'error': msg.error.comment})
 
1677
        event = ('SYS_PROTOCOL_VERSION_ERROR', (), {'error': str(exc)})
1678
1678
        self.assertEqual(event, self.action_queue.event_queue.events[-1])
1679
1679
 
1680
1680
    @defer.inlineCallbacks
1689
1689
 
1690
1690
        self.action_queue.client.oauth_authenticate = raise_this(exc)
1691
1691
        yield self.action_queue.authenticate(None)
1692
 
        event = ('SYS_AUTH_ERROR', (), {'error': msg.error.comment})
 
1692
        event = ('SYS_AUTH_ERROR', (), {'error': str(exc)})
1693
1693
        self.assertEqual(event, self.action_queue.event_queue.events[-1])