'GitHub sometimes sends us a post-commit hook without a ref.
This means we don\'t know what branch to build,
so return a 400.'

def test_400_on_no_ref(self):

    payload = self.payload.copy()
    del payload['ref']
    r = self.client.post('/github/', data=json.dumps(payload), content_type='application/json')
    self.assertEqual(r.status_code, 400)
