def function1826(arg1150): var1607 = client.ClientWebSocketResponse(mock.Mock(), mock.Mock(), mock.Mock(), mock.Mock(), 10.0, True, True, arg1150) var1607._waiting = True with pytest.raises(RuntimeError): yield from var1607.receive()
async def test_receive_runtime_err(loop: Any) -> None: resp = client.ClientWebSocketResponse( mock.Mock(), mock.Mock(), mock.Mock(), mock.Mock(), 10.0, True, True, loop ) resp._waiting = True with pytest.raises(RuntimeError): await resp.receive()
def test_receive_runtime_err(loop): resp = client.ClientWebSocketResponse(mock.Mock(), mock.Mock(), mock.Mock(), mock.Mock(), 10.0, True, True, loop) resp._waiting = True with pytest.raises(RuntimeError): yield from resp.receive()