def test_repo_name_not_in_list(self): """Function: test_repo_name_not_in_list Description: Test repo name is not in list. Arguments: """ self.assertFalse( elastic_db_repo.create_repo(self.els, args_array=self.args_array))
def test_err_flag_false(self): """Function: test_err_flag_false Description: Test err_flag is set to False. Arguments: """ self.assertFalse( elastic_db_repo.create_repo(self.els, args_array=self.args_array))
def test_createrepo_cmdline(self): """Function: test_createrepo_cmdline Description: Test creating repository from command line. Arguments: """ args_array = {"-C": self.repo_name, "-l": self.repo_dir} self.assertFalse( elastic_db_repo.create_repo(self.els, args_array=args_array))
def test_createrepo_arg(self): """Function: test_createrepo_arg Description: Test creating repository from argument list. Arguments: """ self.assertFalse( elastic_db_repo.create_repo(self.els, repo_name=self.repo_name, repo_dir=self.repo_dir, args_array={}))
def test_repo_name_is_passed(self): """Function: test_repo_name_is_passed Description: Test repo name is passed as an argument. Arguments: """ with gen_libs.no_std_out(): self.assertFalse( elastic_db_repo.create_repo(self.els, repo_name="Test_Repo_Name_1", args_array=self.args_array2))
def test_repo_name_in_list(self): """Function: test_repo_name_in_list Description: Test repo name is in list. Arguments: """ self.args_array["-C"] = "Test_Repo_Name_1" with gen_libs.no_std_out(): self.assertFalse( elastic_db_repo.create_repo(self.els, args_array=self.args_array))
def test_err_flag_true(self): """Function: test_err_flag_true Description: Test err_flag is set to True. Arguments: """ self.args_array["-C"] = "Test_Repo_Name_False" with gen_libs.no_std_out(): self.assertFalse( elastic_db_repo.create_repo(self.els, args_array=self.args_array))