def callback_repo_create(self, request, uri, headers, status_code=201):
        # Disabling unused-argument because this is a callback with
        # required method signature.
        # pylint: disable=unused-argument
        self.assertEqual(
            request.headers['Authorization'],
            'token {0}'.format(self.OAUTH2_TOKEN)
        )
        repo_dict = json.loads(request.body)
        self.assertTrue(
            repo_dict['name'] in [self.TEST_REPO, self.TEST_RERUN_REPO]
        )
        self.assertEqual(repo_dict['description'], self.TEST_DESCRIPTION)
        self.assertEqual(repo_dict['private'], True)

        return (status_code, headers, json.dumps({'html_url': 'testing'}))
Mock repo creation API call.
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/tests/base.py/TestGithubBase.callback_repo_create