~brian-murray/aptdaemon/traceback-rename

« back to all changes in this revision

Viewing changes to tests/test_client.py

  • Committer: sebi at glatzor
  • Date: 2011-04-14 09:08:12 UTC
  • Revision ID: sebi@glatzor.de-20110414090812-one20cnrfr4w9vb6
Fix the deferred client test

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
            trans = yield self.client.update_cache()
61
61
            trans.connect("finished", self._on_finished)
62
62
            yield trans.run()
63
 
        yield run()
 
63
            defer.return_value(trans)
 
64
        deferred = run()
64
65
        aptdaemon.loop.mainloop.run()
65
 
        self.assertEqual(trans.exit, aptdaemon.enums.EXIT_SUCCESS)
 
66
        self.assertEqual(deferred.result.exit, aptdaemon.enums.EXIT_SUCCESS)
66
67
 
67
68
    def test_client_methods_sync(self):
68
69
        """ Test most client methods (syncronous) """