Esempio n. 1
0
 def test_get_status_file_dir_does_not_exist_create_failed(self):
     self.mock_isdir.return_value = False
     self.mock_makedirs.side_effect = OSError
     status_file = action_runner.get_status_file(self.output_path)
     assert_equal(status_file, action_runner.NoFile)
Esempio n. 2
0
 def test_get_status_file_dir_does_not_exist_created(self):
     self.mock_isdir.return_value = False
     status_file = action_runner.get_status_file(self.output_path)
     assert_equal(status_file, self.mock_status_file.return_value)
     self.mock_status_file.assert_called_with(
         self.output_path + '/' + action_runner.STATUS_FILE)
Esempio n. 3
0
 def test_get_status_file_dir_does_not_exist_created(self):
     self.mock_isdir.return_value = False
     status_file = action_runner.get_status_file(self.output_path)
     assert_equal(status_file, self.mock_status_file.return_value)
     self.mock_status_file.assert_called_with(self.output_path + '/' +
                                              action_runner.STATUS_FILE)
Esempio n. 4
0
 def test_get_status_file_dir_does_not_exist_create_failed(self):
     self.mock_isdir.return_value = False
     self.mock_makedirs.side_effect = OSError
     status_file = action_runner.get_status_file(self.output_path)
     assert_equal(status_file, action_runner.NoFile)
Esempio n. 5
0
 def test_get_status_file_dir_does_not_exist(self):
     self.mock_isdir.return_value = False
     self.mock_access.return_value = True
     action_runner.get_status_file(self.output_path)
     self.mock_makedirs.assert_called_with(self.output_path)