Exemplo n.º 1
0
 def test_initialize_exist_sprint(self):
     self._init_test_data(10, True)
     self.sprint.initialize()
     osStub.check_dir_created(self.sprintName)
     sysOutputStub.check_sys_output(self.sprintName+" exist, can't be initialized\n")
     sprintDocStub.check_initialized_result([])
     self.assertEqual("", osStub.curDir)
Exemplo n.º 2
0
 def _do_initialize(self, sprintNum=0):
     self._init_test_data(sprintNum, False)
     self.sprint.initialize()
     osStub.check_dir_created(self.sprintName)
     sysOutputStub.check_sys_output(self.sprintName + " created\n")
     sprintDocStub.check_initialized_result(sprintDir.fileList)
     self.assertEqual("", osStub.curDir)
Exemplo n.º 3
0
 def _get_last_num_test(self, expected_ret, *existDirs):
     osStub.set_created_dir_list(*existDirs)
     self.assertEqual(expected_ret, sprintDir.get_last_num())
     osStub.check_dir_created(*existDirs)