示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
    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)