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