summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2013-09-26 16:44:37 +0200
committerMartin Kosek <mkosek@redhat.com>2013-10-04 10:26:35 +0200
commit5fe7f7d8588f274392b9efbd2775ac6b74db8a4d (patch)
tree09066afcfe23af26f60a375ae6d8444d833a0adc /ipatests
parent6f09063407f5525f95b2d322622e83ad1f3bf9a2 (diff)
downloadfreeipa.git-5fe7f7d8588f274392b9efbd2775ac6b74db8a4d.tar.gz
freeipa.git-5fe7f7d8588f274392b9efbd2775ac6b74db8a4d.tar.xz
freeipa.git-5fe7f7d8588f274392b9efbd2775ac6b74db8a4d.zip
frontend: report arguments errors with better detail
When reporting argument errors, show also a context -- what is processed, what is the name of the command.
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_ipalib/test_frontend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_ipalib/test_frontend.py b/ipatests/test_ipalib/test_frontend.py
index 310d7a53..ce943a7e 100644
--- a/ipatests/test_ipalib/test_frontend.py
+++ b/ipatests/test_ipalib/test_frontend.py
@@ -280,7 +280,7 @@ class test_Command(ClassChecker):
# Test ValueError, required after optional:
e = raises(ValueError, self.get_instance, args=('arg1?', 'arg2'))
- assert str(e) == 'arg2: required argument after optional'
+ assert str(e) == "arg2: required argument after optional in %s arguments ['arg1?', 'arg2']" % (self.get_instance().name)
# Test ValueError, scalar after multivalue:
e = raises(ValueError, self.get_instance, args=('arg1+', 'arg2'))