Improve error verification in async_model tests.

refactor
blallo 2019-07-19 14:29:46 +02:00
parent d9e8eb23e3
commit 2bc7f0b75f
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 3 additions and 3 deletions

View File

@ -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):