#NEWLINE# @ patch ( 'twilio.rest.resources.base.make_twilio_request' ) #NEWLINE# def test_create_user( self , mock ) : #NEWLINE# #INDENT# resp = create_mock_json ( 'tests/resources/ip_messaging/user_instance.json' ) #NEWLINE# resp . status_code = 201 #NEWLINE# mock . return_value = resp #NEWLINE# uri = ( '%s/Users' % BASE_URI ) #NEWLINE# list_resource . create ( 'test_id' ) #NEWLINE# exp_params = { #NEWLINE# #INDENT# 'Identity' : 'test_id' , #NEWLINE# #UNINDENT# } #NEWLINE# mock . assert_called_with ( 'POST' , mock , data = exp_params , auth = AUTH , use_json_extension = False )