#NEWLINE# def callback_repo_check( self , request , uri , headers , status_code = 404 ) : #NEWLINE# #INDENT# 'Handle mocked API request for repo existence check.' #NEWLINE# self . assertEqual ( request . headers [ 'Authorization' ] , 'token {0}' . format ( self . OAUTH2_TOKEN ) ) #NEWLINE# if ( uri . TEST_RERUN_REPO in uri ) : #NEWLINE# #INDENT# status_code = 404 #NEWLINE# #UNINDENT# return ( status_code , headers , json . dumps ( { #NEWLINE# #INDENT# 'message' : 'testing' , #NEWLINE# #UNINDENT# } ) )