def METHOD_NAME(event, admin_user, admin_team, webhook, client):
    client.login(email='dummy@dummy.dummy', password='dummy')
    webhook.calls.create(
        webhook=webhook,
        action_type='pretix.event.order.paid',
        target_url=webhook.target_url,
        is_retry=False,
        execution_time=2,
        return_code=0,
        payload='foo',
        response_body='bar'
    )
    resp = client.get('/control/organizer/dummy/webhook/{}/logs'.format(webhook.pk))
    assert 'pretix.event.order.paid' in resp.content.decode()