mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
test: automember: Fix expected exception message
https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
427bbf6c0d
commit
95191e1612
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user