/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 15:53:40 UTC
  • mto: This revision was merged to the branch mainline in revision 788.
  • Revision ID: sinzui.is@verizon.net-20120311155340-vpke4wcrfyvh0hpc
Fix redefined testcase. Remove unneeded tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
            {'overwrite': True}, push.do_push.kwargs)
136
136
 
137
137
 
138
 
class PushTestCase(tests.TestCaseWithTransport):
 
138
class DoPushTestCase(tests.TestCaseWithTransport):
139
139
 
140
140
    def setup_ui(self):
141
141
        set_ui_factory()
158
158
        from_branch = self.make_from_branch()
159
159
        message = push.do_push(from_branch, 'that', False)
160
160
        self.assertEqual('1 revision(s) pushed.', message)
161
 
        self.assertEqual(False, progress_panel.pb.tick.called)
162
161
        self.assertEqual(True, progress_panel.pb.update.called)
163
162
        self.assertEqual(True, progress_panel.pb.finished.called)
164
163
 
169
168
        message = push.do_push(from_branch, 'that/there', False)
170
169
        self.assertEqual('1 revision(s) pushed.', message)
171
170
        self.assertEqual(True, push.question_dialog.called)
172
 
        self.assertEqual(False, progress_panel.pb.tick.called)
173
171
        self.assertEqual(True, progress_panel.pb.update.called)
174
172
        self.assertEqual(True, progress_panel.pb.finished.called)
175
173
 
179
177
        from_branch = self.make_from_branch()
180
178
        message = push.do_push(from_branch, 'that', False)
181
179
        self.assertEqual('1 revision(s) pushed.', message)
182
 
        self.assertEqual(False, progress_panel.pb.tick.called)
183
180
        self.assertEqual(True, progress_panel.pb.update.called)
184
181
        self.assertEqual(True, progress_panel.pb.finished.called)