mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 16:31:08 -06:00
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
This commit is contained in:
parent
10026284db
commit
17fd9cc431
@ -394,7 +394,8 @@ class CLI(object):
|
|||||||
self.cmd_argv = tuple(args)
|
self.cmd_argv = tuple(args)
|
||||||
|
|
||||||
def bootstrap(self):
|
def bootstrap(self):
|
||||||
pass
|
self.__doing('bootstrap')
|
||||||
|
self.parse_globals()
|
||||||
|
|
||||||
# if options.interactive == True:
|
# if options.interactive == True:
|
||||||
# self.__all_interactive = True
|
# self.__all_interactive = True
|
||||||
|
@ -139,3 +139,8 @@ class test_CLI(ClassChecker):
|
|||||||
assert o.cmd_argv == cmd_argv
|
assert o.cmd_argv == cmd_argv
|
||||||
e = raises(StandardError, o.parse_globals)
|
e = raises(StandardError, o.parse_globals)
|
||||||
assert str(e) == 'CLI.parse_globals() already called'
|
assert str(e) == 'CLI.parse_globals() already called'
|
||||||
|
|
||||||
|
def test_bootstrap(self):
|
||||||
|
"""
|
||||||
|
Test the `ipalib.cli.CLI.bootstrap` method.
|
||||||
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user