diff --git a/tests/test_misc.py b/tests/test_misc.py index 79aff21b565aaa76703bec3b423dcd042adc1dbf..a5edd73f23e48f92a160614e28144e3948d292c0 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -499,12 +499,12 @@ def test_retrieve_wrong_role(clear_database): assert entity.role == "Record" with raises(ValueError) as cm: entity.retrieve() - assert cm.value.args[0] == ("The resulting entity had a different role " - "(RecordType) than the local one (Record). " - "This probably means, that the entity was " - "intialized with a wrong class by this client " - "or it has changed in the past and this " - "client did't know about it yet.") + assert cm.value.args[0].startswith("The resulting entity had a different role " + "(RecordType) than the local one (Record). " + "This probably means, that the entity was " + "intialized with a wrong class by this client " + "or it has changed in the past and this " + "client did't know about it yet.") @fixture