From 95191e1612f93823bd0e325ef9b97fa9a4d7869c Mon Sep 17 00:00:00 2001 From: David Kupka Date: Mon, 27 Jun 2016 14:52:27 +0200 Subject: test: automember: Fix expected exception message https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: Jan Cholasta --- ipatests/test_xmlrpc/test_automember_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipatests/test_xmlrpc') 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() -- cgit