~mmcg069/software-center/mkit-theme-tweaks

« back to all changes in this revision

Viewing changes to test/test_appdetails_view.py

  • Committer: Michael Vogt
  • Date: 2010-08-11 19:43:05 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100811194305-vep2qsm90dpxj7j4
test/test_appdetails_view.py: fix mock for test

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        mock_app_details.purchase_date = "purchase_date"
58
58
        mock_app_details.installation_date = "installation_date"
59
59
        mock_app_details.price = "price"
 
60
        # FIXME: this should vanish from the app_details
 
61
        mock_app_details._error_not_found = ""
60
62
        # monkey patch get_details() so that we get the mock object
61
63
        app.get_details = lambda db: mock_app_details
62
64
        # make sure all PKG_STATE_* states work and do not cause crashes