aiohttp._ws_impl._websocket_mask_python

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 7

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

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()