Пример #1
0
 def _sprint_main_test(self, *argvs):
     length = len(argvs)
     for index in range(length):
         sys.argv.append(argvs[index])
     sprint_main()
     if argvs[0] == 'new': sprintDirStub.check_called('initialize')
     else: sprintDirStub.check_called(argvs[0])
     if length > 1:
         sprintDirStub.check_objs_created(argvs[1])
Пример #2
0
 def test_delete_selected_sprint(self):
     self._sprint_main_test('delete', 2)
     sprintDirStub.check_objs_created(2)
Пример #3
0
 def _sprint_main_with_get_last_num(self, operation, sprintNum):
     sprintDirStub.set_expected_last_num(sprintNum)
     self._sprint_main_test(operation)
     if 'new' == operation: sprintNum = sprintNum + 1
     sprintDirStub.check_objs_created(sprintNum)
Пример #4
0
 def _print_help_check(self):
     sprint_main()
     sprintDirStub.check_objs_created()
     sprintDirStub.check_called()
     sysOutputStub.check_sys_output(helpString+'\n')