def test_should_not_delete_directory_because_directory_exist_but_has_content(self): dir_create(test_path) file_path = test_path + '/test_file.txt' file_save(File(file_path, 'Test content'), append=False) dir_delete(test_path, force=False) self.assertTrue(is_dir_exist(test_path)) self.assertTrue(file_exist(file_path))
def test_should_delete_directory_with_success_with_content(self): dir_create(test_path) file_path = test_path + '/test_file.txt' file_save(File(file_path, 'Test content'), append=False) dir_delete(test_path, force=True) self.assertFalse(is_dir_exist(file_path)) self.assertFalse(file_exist(file_path))
def test_should_delete_directory_with_success(self): dir_create(test_path) dir_delete(test_path, force=False) self.assertFalse(False, is_dir_exist(test_path))
def test_should_change_directory_name_with_success(self): dir_create(test_path) dir_change_name(test_path, 'easeCI') self.assertTrue(is_dir_exist('/tmp/easeCI/'))
def test_should_not_create_dir_because_path_is_not_valid(self): result = dir_create(path_not_exist) self.assertFalse(result)
def test_should_create_dir_with_success(self): result = dir_create(test_path) self.assertTrue(result)