summaryrefslogtreecommitdiff
path: root/tests/websocket_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Python 3 compat: Improve WebSocket and testsJakub Stasiak2014-11-131-12/+12
|
* Restore removed tests and make Python 3 compatibleJakub Stasiak2014-11-121-2/+36
| | | | This restores tests removed in 23beb7d43e
* Improve PEP8 conformanceJakub Stasiak2014-11-111-1/+2
|
* Python 3 compat; Improve WSGI, WS, threading and testsJakub Stasiak2014-11-111-91/+57
| | | | | | | | | | | | | | | | | | | This includes: * patching more tests to pass * removing few unit tests which I think are redundant * repeating SSL socket reads in a loop to read all data (I suspect this is related to the fact that writelines is used in the server code there and Python 3 writelines calls write/send repeatedly while on Python 2 it calls it once; on one hand there's no guarantee that single recv/read will return all data sent by the server, on the other hand it's quite suspicious that the number of required reads seems to be connected to the number of sends on the other side of the connection) * working through Python 2/Python 3 threading and thread differences; the lock code I used is the simplest way I could make the tests pass but will likely need to be modified in order to match the original This commit includes 6bcb1dc and closes GH #153
* PEP-8 fixesSergey Shepelev2014-08-271-28/+31
|
* wsgi: websocket: Reformat code + tests (PEP-8)Jakub Stasiak2014-07-181-175/+179
|
* tests: deprecated TestCase.assert_() -> assert keywordSergey Shepelev2014-07-161-21/+21
| | | | https://github.com/eventlet/eventlet/issues/101
* python3 compat fixesVictor Sergeyev2014-03-281-1/+1
| | | | https://github.com/eventlet/eventlet/pull/59
* python3 compat: 2to3: `except E as e:` syntaxDavanum Srinivas2013-12-031-1/+1
| | | | | | | First step to Python 3 compatibility "2to3 -w -f except ." See [1] [1] http://docs.python.org/2/library/2to3.html#fixers
* Skip SSL tests if SSL is not availableFloris Bruynooghe2012-09-051-0/+2
| | | | | This is particularly useful to not require the external OpenSSL module in order to run the tests on python2.5.
* Fixing empty-query-string compatibility that mcarter reported, added unit ↵Ryan Williams2010-10-241-0/+52
| | | | tests for it, too.
* Draft 75 uses 'Web Socket'.Ryan Williams2010-10-031-1/+1
| | | | No detail is too small for The Hixie. Fixes #64
* Update websocket protocol upgrade reply header to match WS spec 76Nick V.2010-10-041-2/+2
| | | | | | | | | | | | | | | | | Quote: The handshake from the server looks as follows: HTTP/1.1 101 WebSocket Protocol Handshake Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Origin: http://example.com Sec-WebSocket-Location: ws://example.com/demo Sec-WebSocket-Protocol: sample End quote However eventlet's websocket was returning the first line as HTTP/1.1 101 Web Socket Protocol Handshake. Removed the space between 'Web' and 'Socket' to match the spec document.
* Pack a vest for your socket in the city of ssl.Ryan Williams2010-09-291-1/+2
|
* Support for SSL websockets, which also happens to improve our SSL support in ↵Ryan Williams2010-09-161-1/+45
| | | | WSGI generally. Fixes #62.
* Improve test coverage for websocket up to 100%, and fix a bug that doing so ↵Andrew Godwin2010-06-111-1/+53
| | | | caught. We love you, coverage.
* Tests for WebSocket-76, and renaming the old ones to *_75Andrew Godwin2010-06-101-6/+218
|
* Moved WebSocketWSGI class into eventlet.websocket and added a fewtests to ↵Ryan Williams2010-05-061-37/+72
| | | | bring it back up to 100%. Refactored the example to reference eventlet.websocket.
* Not really sure what close=True means in a makefile call, but apparently ↵Ryan Williams2010-05-061-20/+8
| | | | some versions of Python don't like it. Removed the file objects entirely to sidestep the issue.
* Cleaned up imports, mostly. Removed dependencies on nose and httplib2. ↵Ryan Williams2010-05-051-50/+30
| | | | Mock's still in there, I guess I don't mind that.
* Moving test_websocket to websocket_test so as to conform to the naming ↵Ryan Williams2010-05-051-0/+228
conventions.