Python tornado.testing() Examples
The following are 2
code examples of tornado.testing().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
tornado
, or try the search function
.
Example #1
Source File: test_websocket_mocked.py From vmaas with GNU General Public License v2.0 | 5 votes |
def send_message(cls, target_client_type, message): """Modify method not to send messages to given components but back to testing code.""" if target_client_type == "webapp": ws.NotificationHandler.send_message("reposcan", message) elif target_client_type == "listener": ws.NotificationHandler.send_message("webapp", message)
Example #2
Source File: plugin.py From pytest-tornado with Apache License 2.0 | 5 votes |
def _unused_port(): return tornado.testing.bind_unused_port()