Ejemplo n.º 1
0
def test_write_non_prepared():
    ws = WebSocketResponse()
    with pytest.raises(RuntimeError):
        ws.write(b'data')
Ejemplo n.º 2
0
def test_write_non_prepared():
    ws = WebSocketResponse()
    with pytest.raises(RuntimeError):
        ws.write(b'data')
Ejemplo n.º 3
0
 def test_write(self):
     ws = WebSocketResponse()
     with self.assertRaises(RuntimeError):
         ws.write(b'data')
Ejemplo n.º 4
0
def function2812():
    var550 = WebSocketResponse()
    with pytest.raises(RuntimeError):
        var550.write(b'data')