#NEWLINE# @ patch ( 'contextio.lib.resources.base_resource.BaseResource._request_uri' ) #NEWLINE# def test_get_webhooks_returns_list_of_WebHooks( self , mock_request ) : #NEWLINE# #INDENT# mock_request . return_value = [ { #NEWLINE# #INDENT# 'webhook_id' : 'fake_id' , #NEWLINE# #UNINDENT# } ] #NEWLINE# user_webhooks = self . user . get_webhooks ( ) #NEWLINE# self . assertEqual ( 1 , len ( user_webhooks ) ) #NEWLINE# self . assertIsInstance ( user_webhooks [ 0 ] , WebHook )