def test_aiowrite(msg_base, event_loop):
with pytest.raises(MsgException) as excinfo:
event_loop.run_until_complete(msg_base.aiowrite("test", "test", "test", event_loop))
assert str(excinfo.value).startswith(exception_message("Method 'aiowrite' not implemented"))
assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR
def test_aiowrite(msg_base, event_loop):
with pytest.raises(MsgException) as excinfo:
event_loop.run_until_complete(msg_base.aiowrite("test", "test", "test", event_loop))
assert str(excinfo.value).startswith(exception_message("Method 'aiowrite' not implemented"))
assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR