summaryrefslogtreecommitdiffstats
path: root/ipalib/__init__.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-13 22:16:04 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-13 22:16:04 -0700
commit860d391f3e905e20ba3f409c92d98e68450f3137 (patch)
tree660d9752e8889a22a01284322e9a8d90bdea7448 /ipalib/__init__.py
parent1f635269e8c0253230c3d20b6b41ccd91e02f361 (diff)
downloadfreeipa-860d391f3e905e20ba3f409c92d98e68450f3137.tar.gz
freeipa-860d391f3e905e20ba3f409c92d98e68450f3137.tar.xz
freeipa-860d391f3e905e20ba3f409c92d98e68450f3137.zip
Change Param.__repr__() so it returns the exact expression that could create it; added unit test for Param.__repre__()
Diffstat (limited to 'ipalib/__init__.py')
-rw-r--r--ipalib/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/__init__.py b/ipalib/__init__.py
index 4ebb7a1e1..59d725f5c 100644
--- a/ipalib/__init__.py
+++ b/ipalib/__init__.py
@@ -431,11 +431,11 @@ containing a command's arguments and options, respectively, as you can see:
>>> list(api.Command.nudge.args) # Iterates through argument names
['programmer']
>>> api.Command.nudge.args.programmer
-Param('programmer', Unicode())
+Param('programmer')
>>> list(api.Command.nudge.options) # Iterates through option names
['stuff']
>>> api.Command.nudge.options.stuff
-Param('stuff', Unicode())
+Param('stuff', default=u'documentation')
>>> api.Command.nudge.options.stuff.default
u'documentation'