Here are the examples of the python api aiohttp._ws_impl._websocket_mask_python taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
Example 1
Project: aiohttp Source File: test_websocket_parser.py
def test_websocket_mask_python():
ret = _ws_impl._websocket_mask_python(websocket_mask_mask,
websocket_mask_data)
assert ret == websocket_mask_masked
0
Example 2
Project: aiohttp Source File: test_websocket_parser.py
def test_websocket_mask_python_empty():
ret = _ws_impl._websocket_mask_python(websocket_mask_mask,
bytearray())
assert ret == bytearray()