def test_two_args_required(self): """Function: test_two_args_required Description: Test with two arguments required and are present. Arguments: """ self.assertTrue( arg_parser.arg_cond_req(self.args_array4, self.opt_con_req_list3))
def test_empty_optconreqlist(self): """Function: test_empty_optconreqlist Description: Test with empty list for opt_con_req_list. Arguments: """ self.assertTrue( arg_parser.arg_cond_req(self.args_array2, self.opt_con_req_list))
def test_one_arg_required(self): """Function: test_one_arg_required Description: Test with one argument required and is present. Arguments: """ self.assertTrue( arg_parser.arg_cond_req(self.args_array3, self.opt_con_req_list2))
def test_one_arg_missing(self): """Function: test_one_arg_missing Description: Test with one argument required, but missing. Arguments: """ with gen_libs.no_std_out(): status = arg_parser.arg_cond_req(self.args_array2, self.opt_con_req_list2) self.assertFalse(status)
def test_empty_argsarray(self): """Function: test_empty_argsarray Description: Test with empty list for def_array. Arguments: """ with gen_libs.no_std_out(): status = arg_parser.arg_cond_req(self.args_array, self.opt_con_req_list2) self.assertTrue(status)