From 349fc660e796841a3d78b82bf4fa195a228da4c4 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 9 Sep 2008 23:46:16 +0000 Subject: 275: Added Command.__check_args(); added basic unit tests for Command.args instance attribute --- ipalib/tests/test_public.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ipalib/tests/test_public.py') 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. -- cgit