summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_cli.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-15 19:49:04 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-15 19:49:04 +0000
commitb0ec8fe551bc5f454aa1babeab31a424fd8c9abe (patch)
tree29cab05901d1aff75540d06bb4777efc1bf565c7 /ipalib/tests/test_cli.py
parent99450358af821b269d46581750d20730fb5c9e9f (diff)
downloadfreeipa.git-b0ec8fe551bc5f454aa1babeab31a424fd8c9abe.tar.gz
freeipa.git-b0ec8fe551bc5f454aa1babeab31a424fd8c9abe.tar.xz
freeipa.git-b0ec8fe551bc5f454aa1babeab31a424fd8c9abe.zip
182: Renamed plublic.cmd base class to Command
Diffstat (limited to 'ipalib/tests/test_cli.py')
-rw-r--r--ipalib/tests/test_cli.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipalib/tests/test_cli.py b/ipalib/tests/test_cli.py
index a5ee8a94..2c65bd06 100644
--- a/ipalib/tests/test_cli.py
+++ b/ipalib/tests/test_cli.py
@@ -46,7 +46,7 @@ def test_from_cli():
def get_cmd_name(i):
return 'cmd_%d' % i
-class DummyCmd(object):
+class DummyCommand(object):
def __init__(self, name):
self.__name = name
@@ -60,11 +60,11 @@ class DummyAPI(object):
def __get_cmd(self):
return self.__cmd
- cmd = property(__get_cmd)
+ Command = property(__get_cmd)
def __cmd_iter(self, cnt):
for i in xrange(cnt):
- yield DummyCmd(get_cmd_name(i))
+ yield DummyCommand(get_cmd_name(i))
def finalize(self):
pass
@@ -114,7 +114,7 @@ class test_CLI(ClassChecker):
"""
cnt = 100
api = DummyAPI(cnt)
- len(api.cmd) == cnt
+ len(api.Command) == cnt
o = self.cls(api)
assert o.mcl is None
o.finalize()
@@ -126,10 +126,10 @@ class test_CLI(ClassChecker):
"""
cnt = 25
api = DummyAPI(cnt)
- assert len(api.cmd) == cnt
+ assert len(api.Command) == cnt
o = self.cls(api)
o.finalize()
- for cmd in api.cmd():
+ for cmd in api.Command():
key = cli.to_cli(cmd.name)
assert key in o
assert o[key] is cmd