/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-11 17:38:55 UTC
  • mto: This revision was merged to the branch mainline in revision 788.
  • Revision ID: sinzui.is@verizon.net-20120311173855-rx5p48xd3a9jq2rs
Added test for aborted message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
        self.assertEqual(True, progress_panel.pb.update.called)
172
172
        self.assertEqual(True, progress_panel.pb.finished.called)
173
173
 
 
174
    def test_do_push_without_parent_dir_aborted(self):
 
175
        self.setup_ui()
 
176
        from_branch = self.make_from_branch()
 
177
        MockMethod.bind(self, push, 'question_dialog', Gtk.ResponseType.CANCEL)
 
178
        message = push.do_push(from_branch, 'that/there', False)
 
179
        self.assertEqual('Push aborted.', message)
 
180
 
174
181
    def test_do_push_with_dir(self):
175
182
        progress_panel = self.setup_ui()
176
183
        self.make_branch_and_tree('that')