def test_argsarray_only(self): """Function: test_argsarray_only Description: Test with args_array passed only. Arguments: """ test_array = dict(self.args_array) self.assertEqual(arg_parser.arg_add_def(self.args_array), test_array)
def test_optreqlist_zero_arg(self): """Function: test_optreqlist_zero_arg Description: Test with adding zero args from opt_req_list. Arguments: """ test_array = dict(self.args_array) self.assertEqual( arg_parser.arg_add_def(self.args_array, self.def_array3, self.opt_req_list2), test_array)
def test_empty_defarray(self): """Function: test_empty_defarray Description: Test with empty list for def_array. Arguments: """ test_array = dict(self.args_array) self.assertEqual( arg_parser.arg_add_def(self.args_array, self.def_array, self.opt_req_list), test_array)
def test_defarray_one_arg(self): """Function: test_defarray_one_arg Description: Test with adding one arg from def_array. Arguments: """ test_array = dict(self.args_array) test_array["-n"] = "1" self.assertEqual( arg_parser.arg_add_def(self.args_array, self.def_array2, self.opt_req_list), test_array)
def test_optreqlist_two_args(self): """Function: test_optreqlist_two_args Description: Test with adding two args from opt_req_list. Arguments: """ test_array = dict(self.args_array) test_array["-n"] = "1" test_array["-i"] = "sysmon" self.assertEqual( arg_parser.arg_add_def(self.args_array, self.def_array4, self.opt_req_list4), test_array)