'Test for private GitHub repo mapping.
Previously we were missing triggering post-commit hooks because
we only compared against the *public* ``github.com/user/repo`` URL.
Users can also enter a ``github.com:user/repo`` URL,
which we should support.'

def test_private_repo_mapping(self):

    self.rtfd.repo = 'git@github.com:rtfd/readthedocs.org'
    self.rtfd.save()
    payload = self.payload.copy()
    r = self.client.post('/github/', data=json.dumps(payload), content_type='application/json')
    self.assertContains(r, '(URL    Build)    Build    Started:    github.com/rtfd/readthedocs.org    [awesome]')
