Пример #1
0
 def test_end_progress_will_close_dialog_if_there_are_no_callers_left(self):
     """testing if the end_progress method will close the progress dialog
     it there are no callers left
     """
     pm = ProgressDialogManager()
     caller = pm.register(5)
     caller.step()
     self.assertIn(caller, pm.callers)
     pm.end_progress(caller)
     self.assertNotIn(caller, pm.callers)
Пример #2
0
 def test_end_progress_will_close_dialog_if_there_are_no_callers_left(self):
     """testing if the end_progress method will close the progress dialog
     it there are no callers left
     """
     pm = ProgressDialogManager()
     caller = pm.register(5)
     caller.step()
     self.assertIn(caller, pm.callers)
     pm.end_progress(caller)
     self.assertNotIn(caller, pm.callers)
Пример #3
0
 def test_end_progress_method_removes_the_given_caller_from_list(self):
     """testing if the end_progress method will remove the given caller from
     the callers list
     """
     pm = ProgressDialogManager()
     caller = pm.register(5)
     caller.step()
     self.assertIn(caller, pm.callers)
     pm.end_progress(caller)
     self.assertNotIn(caller, pm.callers)
Пример #4
0
 def test_end_progress_method_removes_the_given_caller_from_list(self):
     """testing if the end_progress method will remove the given caller from
     the callers list
     """
     pm = ProgressDialogManager()
     caller = pm.register(5)
     caller.step()
     self.assertIn(caller, pm.callers)
     pm.end_progress(caller)
     self.assertNotIn(caller, pm.callers)