~mvo/software-center/fix-index-update-terms-bug

« back to all changes in this revision

Viewing changes to test/test_database.py

  • Committer: Michael Vogt
  • Date: 2011-07-08 12:20:42 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110708122042-pq8h13m8cqjabah1
reshuffle tests a bit to prepare for gtk3 tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
        self.assertEqual(appdetails.installation_date, None)
195
195
        # then we need to wait until the history is loaded in the idle
196
196
        # handler
197
 
        import gtk
198
 
        while gtk.events_pending():
199
 
            gtk.main_iteration()
 
197
        import glib
 
198
        context = glib.main_context_default()
 
199
        while context.pending():
 
200
            context.iteration()
200
201
        # ... and finally we test that its really there
201
202
        # FIXME: this will only work if software-center is installed
202
203
        self.assertNotEqual(appdetails.installation_date, None)