Beispiel #1
0
    def test_neg_02(self):
        "Command Line Parser: no config file given"

        args = [ ]
        try:
            options = parse_cmd_line_opts(args)
            assert(False)
        except RMTException, rmte:
            assert(rmte.id()==60)
Beispiel #2
0
    def test_neg_03(self):
        "Command Line Parser: too many args"

        args = ["-f", "SomeFile", "das", "ist", "was"]
        try:
            options = parse_cmd_line_opts(args)
            assert(False)
        except RMTException, rmte:
            assert(rmte.id()==61)
Beispiel #3
0
    def test_neg_01(self):
        "Command Line Parser: check default -m"

        args = ["-f", "SomeFile" ]
        options = parse_cmd_line_opts(args)
        assert(options.modules_directory == "/usr/share/pyshared")