Improve error verification in async_model tests.

This commit is contained in:
sfigato 2019-07-19 14:29:46 +02:00
parent d9e8eb23e3
commit 2bc7f0b75f
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -453,7 +453,7 @@ def test_User_unsettable_name(client_fixture):
with pytest.raises(RuntimeError) as e: with pytest.raises(RuntimeError) as e:
c.name = "totò" 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): def test_User_singleton(client_fixture):
@ -696,7 +696,7 @@ def test_Service_unsettable_name(client_fixture):
with pytest.raises(RuntimeError) as e: with pytest.raises(RuntimeError) as e:
c.name = "theta" 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): def test_Service_singleton(client_fixture):
@ -746,7 +746,7 @@ def test_Group_unsettable_name(client_fixture):
with pytest.raises(RuntimeError) as e: with pytest.raises(RuntimeError) as e:
c.name = "nemici" 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): def test_Group_singleton(client_fixture):