diff options
| author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-27 14:49:34 -0600 |
|---|---|---|
| committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-27 14:49:34 -0600 |
| commit | 17fd9cc4315f171a8d9e9d189936eea8ba2af0c0 (patch) | |
| tree | c0039a9cb602544dad41a6730837700daf430fd2 | |
| parent | 10026284dbf8f1b8a6eedf3b1c6ce05da568b4fa (diff) | |
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
| -rw-r--r-- | ipalib/cli.py | 3 | ||||
| -rw-r--r-- | tests/test_ipalib/test_cli.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 21b02299e..eb8df591b 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -394,7 +394,8 @@ class CLI(object): self.cmd_argv = tuple(args) def bootstrap(self): - pass + self.__doing('bootstrap') + self.parse_globals() # if options.interactive == True: # self.__all_interactive = True diff --git a/tests/test_ipalib/test_cli.py b/tests/test_ipalib/test_cli.py index 10f239897..28e441e7d 100644 --- a/tests/test_ipalib/test_cli.py +++ b/tests/test_ipalib/test_cli.py @@ -139,3 +139,8 @@ class test_CLI(ClassChecker): assert o.cmd_argv == cmd_argv e = raises(StandardError, o.parse_globals) assert str(e) == 'CLI.parse_globals() already called' + + def test_bootstrap(self): + """ + Test the `ipalib.cli.CLI.bootstrap` method. + """ |
