def test_arg_present(self): """Function: test_arg_present Description: Test with argument present. Arguments: """ self.assertEqual(arg_parser.arg_set_path(self.args_array2, self.arg_opt2), self.ret2)
def test_trailing_slash(self): """Function: test_trailing_slash Description: Test with trailing slash already present. Arguments: """ self.assertEqual(arg_parser.arg_set_path(self.args_array3, self.arg_opt2), self.ret2)
def test_empty_argopt(self): """Function: test_empty_argopt Description: Test with empty string for arg_opt. Arguments: """ self.assertEqual(arg_parser.arg_set_path(self.args_array2, self.arg_opt), self.ret)
def test_empty_argsarray(self): """Function: test_empty_argsarray Description: Test with empty dictionary for args_array. Arguments: """ self.assertEqual(arg_parser.arg_set_path(self.args_array, self.arg_opt2), self.ret)
def test_empty_both(self): """Function: test_empty_both Description: Test with both args empty. Arguments: """ self.assertEqual(arg_parser.arg_set_path(self.args_array2, self.arg_opt), self.ret)