From 2bc7f0b75f2aa50f7b007bdce5aff0739398e9cb Mon Sep 17 00:00:00 2001 From: Blallo Date: Fri, 19 Jul 2019 14:29:46 +0200 Subject: [PATCH] Improve error verification in async_model tests. --- async_tests/test_async_ldap_model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/async_tests/test_async_ldap_model.py b/async_tests/test_async_ldap_model.py index c033c31..58e1f88 100644 --- a/async_tests/test_async_ldap_model.py +++ b/async_tests/test_async_ldap_model.py @@ -453,7 +453,7 @@ def test_User_unsettable_name(client_fixture): with pytest.raises(RuntimeError) as e: c.name = "totò" - assert "Name property is not modifiable." in str(e) + assert "Name property is not modifiable." in str(e.value) def test_User_singleton(client_fixture): @@ -696,7 +696,7 @@ def test_Service_unsettable_name(client_fixture): with pytest.raises(RuntimeError) as e: c.name = "theta" - assert "Name property is not modifiable." in str(e) + assert "Name property is not modifiable." in str(e.value) def test_Service_singleton(client_fixture): @@ -746,7 +746,7 @@ def test_Group_unsettable_name(client_fixture): with pytest.raises(RuntimeError) as e: c.name = "nemici" - assert "Name property is not modifiable." in str(e) + assert "Name property is not modifiable." in str(e.value) def test_Group_singleton(client_fixture):