#NEWLINE# def test_edit( self ) : #NEWLINE# #INDENT# 'Test the ability to edit a hook on a repository.' #NEWLINE# self . token_login ( ) #NEWLINE# cassette_name = self . cassette_name ( 'edit' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'github3py' , 'delete_contents' ) #NEWLINE# hook = repository . hook ( 7112180 ) #NEWLINE# data = { #NEWLINE# #INDENT# 'config' : { #NEWLINE# #INDENT# 'url' : 'https://requestb.in/15u72q01' , #NEWLINE# 'content_type' : 'json' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'events' : [ 'pull_request' ] , #NEWLINE# #UNINDENT# } #NEWLINE# edited = hook . edit ( ** edited ) #NEWLINE# #UNINDENT# assert edited