diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-04 04:39:01 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-04 04:39:01 +0000 |
commit | ab81ca56fd336af4b83ef19a6f97dffe0b1a0923 (patch) | |
tree | 05bebd08f4ae1672b2259f797613346745bb8272 /ipalib/tests/test_cli.py | |
parent | e1f8619d4adbc15415e2959496640c0f707c54fe (diff) | |
download | freeipa.git-ab81ca56fd336af4b83ef19a6f97dffe0b1a0923.tar.gz freeipa.git-ab81ca56fd336af4b83ef19a6f97dffe0b1a0923.tar.xz freeipa.git-ab81ca56fd336af4b83ef19a6f97dffe0b1a0923.zip |
255: CLI help, console commands now subclass from public.Application; other tweeking to make CLI utilize Application
Diffstat (limited to 'ipalib/tests/test_cli.py')
-rw-r--r-- | ipalib/tests/test_cli.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/tests/test_cli.py b/ipalib/tests/test_cli.py index 2c65bd06..df3f943e 100644 --- a/ipalib/tests/test_cli.py +++ b/ipalib/tests/test_cli.py @@ -75,6 +75,7 @@ class DummyAPI(object): + class test_CLI(ClassChecker): """ Tests the `cli.CLI` class. @@ -117,7 +118,7 @@ class test_CLI(ClassChecker): len(api.Command) == cnt o = self.cls(api) assert o.mcl is None - o.finalize() + o.build_map() assert o.mcl == 6 # len('cmd_99') def test_dict(self): @@ -128,7 +129,7 @@ class test_CLI(ClassChecker): api = DummyAPI(cnt) assert len(api.Command) == cnt o = self.cls(api) - o.finalize() + o.build_map() for cmd in api.Command(): key = cli.to_cli(cmd.name) assert key in o |