def compute_accept(key):

    accept_binary = util.sha1_hash(
        key + common.WEBSOCKET_ACCEPT_UUID).digest()
    accept = base64.b64encode(accept_binary)

    return (accept, accept_binary)
This test checks naming rule for action group
dataset/ETHPy150Open google/pywebsocket/mod_pywebsocket/handshake/hybi.py/compute_accept--crossover with--dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/condensation/test_action.py/ActionTest.test_key_creation