From 65f04bf4d103ea7ab9307946ccc11a17de51d93f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 22 Apr 2015 09:31:22 +1200 Subject: First-pass websocket client handshake --- test/test_language.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test_language.py') diff --git a/test/test_language.py b/test/test_language.py index cd7f703e..4dd3d8ac 100644 --- a/test/test_language.py +++ b/test/test_language.py @@ -600,6 +600,11 @@ class TestRequest: r = parse_request("GET:@100").freeze({}) assert len(r.spec()) > 100 + def test_websocket(self): + r = parse_request('ws:"/foo"') + res = r.resolve({}) + assert utils.get_header("upgrade", res.headers) + class TestWriteValues: def test_send_chunk(self): -- cgit v1.2.3