summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_public.py
diff options
context:
space:
mode:
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.