コード例 #1
0
    def test_pos_02(self):
        "NormalizeDependencies: check command line parameters: no config"

        try:
            opt = parse_cmd_line_opts(["hubbel"])
            assert(False)
        except RMTException, rmte:
            assert(rmte.get_id()==82)
コード例 #2
0
    def test_pos_03(self):
        "NormalizeDependencies: check command line parameters: no dir"

        try:
            opt = parse_cmd_line_opts(["-f", "somewhere"])
            assert(False)
        except RMTException, rmte:
            assert(rmte.get_id()==83)
コード例 #3
0
    def test_pos_01(self):
        "NormalizeDependencies: check command line parameters: standard module"

        opt = parse_cmd_line_opts(["-f", "somewhere", "hubbel"])
        assert(opt.modules_directory=="/usr/share/pyshared")