summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/cli.py3
-rw-r--r--tests/test_ipalib/test_cli.py5
2 files changed, 7 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 21b02299..eb8df591 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 10f23989..28e441e7 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.
+ """