async def test_webhook_handle_render_template(create_registrations, webhook_client):
    'Test that we render templates properly.'
    resp = (await webhook_client.post('/api/webhook/{}'.format(create_registrations[1]['webhook_id']), json=RENDER_TEMPLATE))
    assert (resp.status == 200)
    json = (await resp.json())
    assert (json == {'one': 'Hello world'})
Test that we render templates properly.
async def test_webhook_handle_render_template(create_registrations, webhook_client):
    
    resp = (await webhook_client.post('/api/webhook/{}'.format(create_registrations[1]['webhook_id']), json=RENDER_TEMPLATE))
    assert (resp.status == 200)
    json = (await resp.json())
    assert (json == {'one': 'Hello world'})