summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_public.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-09 23:46:16 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-09 23:46:16 +0000
commit349fc660e796841a3d78b82bf4fa195a228da4c4 (patch)
tree621b35c012f9e89070bb8dc4cfd8b3f8ac011fbe /ipalib/tests/test_public.py
parent0453aa465f8371aa4baea5c06adad42481553e0a (diff)
downloadfreeipa.git-349fc660e796841a3d78b82bf4fa195a228da4c4.tar.gz
freeipa.git-349fc660e796841a3d78b82bf4fa195a228da4c4.tar.xz
freeipa.git-349fc660e796841a3d78b82bf4fa195a228da4c4.zip
275: Added Command.__check_args(); added basic unit tests for Command.args instance attribute
Diffstat (limited to 'ipalib/tests/test_public.py')
-rw-r--r--ipalib/tests/test_public.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/tests/test_public.py b/ipalib/tests/test_public.py
index f9ff3a89..2683e5dd 100644
--- a/ipalib/tests/test_public.py
+++ b/ipalib/tests/test_public.py
@@ -368,6 +368,14 @@ class test_Command(ClassChecker):
o = example()
assert o.get_args() is args
+ def test_args(self):
+ """
+ Tests the ``Command.args`` instance attribute.
+ """
+ ns = self.cls().args
+ assert type(ns) is plugable.NameSpace
+ assert len(ns) == 0
+
def test_get_options(self):
"""
Tests the `public.Command.get_options` method.