@httpretty.activate
    def test_add_repo_file_bad_status(self):
        self.register_repo_check(
            partial(self.callback_repo_check, status_code=200)
        )
        self.register_create_file(status=500)
        git_hub = GitHub(self.URL, self.OAUTH2_TOKEN)
        with self.assertRaises(GitHubUnknownError):
            git_hub.add_repo_file(
                self.ORG, self.TEST_REPO, None, None, None, ''
            )
Verify the successful file creation and verify the request made
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/tests/test_github.py/TestGithub.test_add_repo_file_bad_status