'GitHub webhook unhandled event'

def test_github_invalid_webhook(self, trigger_build):

    client = APIClient()
    resp = client.post('/api/v2/webhook/github/{0}/'.format(self.project.slug), {'foo': 'bar'}, format='json', HTTP_X_GITHUB_EVENT='pull_request')
    self.assertEqual(resp.status_code, 200)
    self.assertEqual(resp.data['detail'], 'Unhandled    webhook    event')
