summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2016-06-27 14:52:27 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-29 10:49:37 +0200
commit95191e1612f93823bd0e325ef9b97fa9a4d7869c (patch)
treea31617069e604cf0bdd021cb39413f808aa46987 /ipatests/test_xmlrpc
parent427bbf6c0d61cf52f14a9f2606143f994340ec83 (diff)
downloadfreeipa-95191e1612f93823bd0e325ef9b97fa9a4d7869c.tar.gz
freeipa-95191e1612f93823bd0e325ef9b97fa9a4d7869c.tar.xz
freeipa-95191e1612f93823bd0e325ef9b97fa9a4d7869c.zip
test: automember: Fix expected exception message
https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_automember_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_xmlrpc/test_automember_plugin.py b/ipatests/test_xmlrpc/test_automember_plugin.py
index 9060b69bd..ffbc91104 100644
--- a/ipatests/test_xmlrpc/test_automember_plugin.py
+++ b/ipatests/test_xmlrpc/test_automember_plugin.py
@@ -196,7 +196,7 @@ class TestNonexistentAutomember(XMLRPC_test):
group1.ensure_missing()
command = automember_group.make_delete_command()
with raises_exact(errors.NotFound(
- reason=u': Automember rule not found')):
+ reason=u'%s: Automember rule not found' % group1.cn)):
command()
def test_create_with_nonexistent_hostgroup(self, automember_hostgroup,
@@ -214,7 +214,7 @@ class TestNonexistentAutomember(XMLRPC_test):
hostgroup1.ensure_missing()
command = automember_hostgroup.make_delete_command()
with raises_exact(errors.NotFound(
- reason=u': Automember rule not found')):
+ reason=u'%s: Automember rule not found' % hostgroup1.cn)):
command()