@@ -248,7 +248,7 @@ def test_update_call(self):
248248 """
249249 answer_url = MANTECA_BASE_URL + "/bxml/loop"
250250 call_body = CreateCall (to = MANTECA_IDLE_NUMBER , _from = MANTECA_ACTIVE_NUMBER , application_id = MANTECA_APPLICATION_ID , answer_url = answer_url )
251- create_call_response : CreateCallResponse = self .api_instance .create_call ("9901159" , call_body , _return_http_data_only = False )
251+ create_call_response : CreateCallResponse = self .api_instance .create_call (BW_ACCOUNT_ID , call_body , _return_http_data_only = False )
252252 call_id = create_call_response [0 ].call_id
253253 body = UpdateCall (
254254 state = CallStateEnum ("active" ),
@@ -264,7 +264,7 @@ def test_update_call(self):
264264 )
265265
266266 time .sleep (2 )
267- update_call_response : UpdateCall = self .api_instance .update_call ("9901159" , call_id , body , _return_http_data_only = False )
267+ update_call_response : UpdateCall = self .api_instance .update_call (BW_ACCOUNT_ID , call_id , body , _return_http_data_only = False )
268268
269269 self .assertEqual (update_call_response [1 ], 200 )
270270
@@ -273,12 +273,12 @@ def test_update_call_bad_request(self):
273273 """
274274 answer_url = MANTECA_BASE_URL + "/bxml/loop"
275275 call_body = CreateCall (to = MANTECA_IDLE_NUMBER , _from = MANTECA_ACTIVE_NUMBER , application_id = MANTECA_APPLICATION_ID , answer_url = answer_url )
276- create_call_response : CreateCallResponse = self .api_instance .create_call ("9901159" , call_body , _return_http_data_only = False )
276+ create_call_response : CreateCallResponse = self .api_instance .create_call (BW_ACCOUNT_ID , call_body , _return_http_data_only = False )
277277 call_id = create_call_response [0 ].call_id
278278 body = UpdateCall (state = CallStateEnum ("active" ))
279279
280280 with self .assertRaises (ApiException ) as context :
281- self .api_instance .update_call ("9901159" , call_id , body , _return_http_data_only = False )
281+ self .api_instance .update_call (BW_ACCOUNT_ID , call_id , body , _return_http_data_only = False )
282282
283283 self .assertEqual (context .exception .status , 400 )
284284
@@ -314,13 +314,13 @@ def test_update_call_forbidden(self):
314314 forbidden_api_client )
315315 answer_url = MANTECA_BASE_URL + "/bxml/loop"
316316 call_body = CreateCall (to = MANTECA_IDLE_NUMBER , _from = MANTECA_ACTIVE_NUMBER , application_id = MANTECA_APPLICATION_ID , answer_url = answer_url )
317- create_call_response : CreateCallResponse = self .api_instance .create_call ("9901159" , call_body , _return_http_data_only = False )
317+ create_call_response : CreateCallResponse = self .api_instance .create_call (BW_ACCOUNT_ID , call_body , _return_http_data_only = False )
318318 call_id = create_call_response [0 ].call_id
319319 body = UpdateCall (state = CallStateEnum ("active" ))
320320
321321
322322 with self .assertRaises (ForbiddenException ) as context :
323- forbidden_api_instance .update_call ("9901159" , call_id , body , _return_http_data_only = False )
323+ forbidden_api_instance .update_call (BW_ACCOUNT_ID , call_id , body , _return_http_data_only = False )
324324
325325 self .assertApiException (context , ForbiddenException , 403 )
326326
@@ -342,12 +342,12 @@ def test_update_call_bxml(self):
342342 """
343343 answer_url = MANTECA_BASE_URL + "/bxml/loop"
344344 call_body = CreateCall (to = MANTECA_IDLE_NUMBER , _from = MANTECA_ACTIVE_NUMBER , application_id = MANTECA_APPLICATION_ID , answer_url = answer_url )
345- create_call_response : CreateCallResponse = self .api_instance .create_call ("9901159" , call_body , _return_http_data_only = False )
345+ create_call_response : CreateCallResponse = self .api_instance .create_call (BW_ACCOUNT_ID , call_body , _return_http_data_only = False )
346346 call_id = create_call_response [0 ].call_id
347347 body = '<?xml version="1.0" encoding="UTF-8"?><Bxml><SpeakSentence locale="en_US" gender="female" voice="susan">This is a test bxml response</SpeakSentence><Pause duration="3"/></Bxml>'
348348
349349 time .sleep (2 )
350- update_call_bxml_response : UpdateCall = self .api_instance .update_call_bxml ("9901159" , call_id , body , _return_http_data_only = False )
350+ update_call_bxml_response : UpdateCall = self .api_instance .update_call_bxml (BW_ACCOUNT_ID , call_id , body , _return_http_data_only = False )
351351
352352 self .assertEqual (update_call_bxml_response [1 ], 204 )
353353
@@ -356,12 +356,12 @@ def test_update_call_bxml_bad_request(self):
356356 """
357357 answer_url = MANTECA_BASE_URL + "/bxml/loop"
358358 call_body = CreateCall (to = MANTECA_IDLE_NUMBER , _from = MANTECA_ACTIVE_NUMBER , application_id = MANTECA_APPLICATION_ID , answer_url = answer_url )
359- create_call_response : CreateCallResponse = self .api_instance .create_call ("9901159" , call_body , _return_http_data_only = False )
359+ create_call_response : CreateCallResponse = self .api_instance .create_call (BW_ACCOUNT_ID , call_body , _return_http_data_only = False )
360360 call_id = create_call_response [0 ].call_id
361361 body = "invalidBXML"
362362
363363 with self .assertRaises (ApiException ) as context :
364- self .api_instance .update_call_bxml ("9901159" , call_id , body , _return_http_data_only = False )
364+ self .api_instance .update_call_bxml (BW_ACCOUNT_ID , call_id , body , _return_http_data_only = False )
365365
366366 self .assertEqual (context .exception .status , 400 )
367367
@@ -398,13 +398,13 @@ def test_update_call_bxml_forbidden(self):
398398 forbidden_api_client )
399399 answer_url = MANTECA_BASE_URL + "/bxml/loop"
400400 call_body = CreateCall (to = MANTECA_IDLE_NUMBER , _from = MANTECA_ACTIVE_NUMBER , application_id = MANTECA_APPLICATION_ID , answer_url = answer_url )
401- create_call_response : CreateCallResponse = self .api_instance .create_call ("9901159" , call_body , _return_http_data_only = False )
401+ create_call_response : CreateCallResponse = self .api_instance .create_call (BW_ACCOUNT_ID , call_body , _return_http_data_only = False )
402402 call_id = create_call_response [0 ].call_id
403403 body = '<?xml version="1.0" encoding="UTF-8"?><Bxml><SpeakSentence locale="en_US" gender="female" voice="susan">This is a test bxml response</SpeakSentence><Pause duration="3"/></Bxml>'
404404
405405
406406 with self .assertRaises (ForbiddenException ) as context :
407- forbidden_api_instance .update_call_bxml ("9901159" , call_id , body , _return_http_data_only = False )
407+ forbidden_api_instance .update_call_bxml (BW_ACCOUNT_ID , call_id , body , _return_http_data_only = False )
408408
409409 self .assertApiException (context , ForbiddenException , 403 )
410410
0 commit comments