def test_write_non_prepared(): ws = WebSocketResponse() with pytest.raises(RuntimeError): ws.write(b'data')
def test_write(self): ws = WebSocketResponse() with self.assertRaises(RuntimeError): ws.write(b'data')
def function2812(): var550 = WebSocketResponse() with pytest.raises(RuntimeError): var550.write(b'data')