#NEWLINE# @ httpretty . activate #NEWLINE# def test_add_repo_file_bad_status( self ) : #NEWLINE# #INDENT# '\n        Verify the successful file creation and verify the request made\n        ' #NEWLINE# self . register_repo_check ( partial ( self . callback_repo_check , status_code = 200 ) ) #NEWLINE# self . register_create_file ( status = 500 ) #NEWLINE# git_hub = GitHub ( self . URL , self . OAUTH2_TOKEN ) #NEWLINE# with self . assertRaises ( GitHubUnknownError ) : #NEWLINE# #INDENT# git_hub . add_repo_file ( self . ORG , self . TEST_REPO , None , None , None , '' )