Esempio n. 1
0
def test_websocket_set(websocket_service: WebsocketService,
                       expected_response, side_effect, path, regex):
    websocket_service.set(side_effect, path, regex=regex)
    conn = _connect(websocket_service)
    assert conn.recv() == expected_response
Esempio n. 2
0
def test_websocket_double_set(websocket_service: WebsocketService):
    websocket_service.set("test", "test")
    websocket_service.set("test", "test")  # No error