/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_push.py

  • Committer: Curtis Hovey
  • Date: 2012-03-03 23:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 782.
  • Revision ID: sinzui.is@verizon.net-20120303233007-tt88vprrp3yeuxeh
Verified that the progress widget was called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        self.assertIs(None, ui.ui_factory._progress_bar_widget)
92
92
 
93
93
    def test_on_push_clicked_without_errors(self):
 
94
        set_ui_factory()
 
95
        branch = self.make_push_branch()
 
96
        dialog = push.PushDialog(None, None, branch)
94
97
        MockMethod.bind(self, push, 'do_push', "test success")
95
 
        set_ui_factory()
96
 
        branch = self.make_push_branch()
97
 
        dialog = push.PushDialog(None, None, branch)
 
98
        MockMethod.bind(self, dialog._progress_widget, 'tick')
98
99
        dialog._combo.get_child().props.text = 'lp:~user/fnord/test'
99
100
        dialog._on_push_clicked(None)
 
101
        self.assertIs(True, dialog._progress_widget.tick.called)
 
102
        self.assertIs(False, dialog._progress_widget.props.visible)
100
103
        self.assertIs(True, push.do_push.called)
101
104
        self.assertEqual(
102
105
            (branch, 'lp:~user/fnord/test'), push.do_push.args)