From 6d0e4e58fcc33f8c4514750eb6e5d7b5882efef8 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 27 Mar 2012 09:27:11 -0400 Subject: Fix expected error messages in tests Have the test suite check error messages. Since XMLRPC doesn't give us structured error information, just compare the resulting text. Fix messages that tests expect to cause. Minor changes: Make netgroup-mod's NotFound message consistent with other objects and methods. In test_automember_plugin, test with nonexistent automember rules of both types, instead of nonexistent users. https://fedorahosted.org/freeipa/ticket/2549 --- tests/test_xmlrpc/test_attr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_xmlrpc/test_attr.py') diff --git a/tests/test_xmlrpc/test_attr.py b/tests/test_xmlrpc/test_attr.py index c19a6948..6877a630 100644 --- a/tests/test_xmlrpc/test_attr.py +++ b/tests/test_xmlrpc/test_attr.py @@ -241,7 +241,8 @@ class test_attr(Declarative): command=( 'user_mod', [user1], dict(delattr=u'telephoneNumber=301-555-1212') ), - expected=errors.AttrValueNotFound(attr='telephoneNumber', value='301-555-1212') + expected=errors.AttrValueNotFound(attr=u'telephonenumber', + value=u'301-555-1212') ), @@ -345,7 +346,7 @@ class test_attr(Declarative): command=( 'user_mod', [user1], dict(givenname=None) ), - expected=errors.RequirementError(name='givenname'), + expected=errors.RequirementError(name='first'), ), -- cgit