@@ -51,15 +51,15 @@ def setUp(self):
5151 )
5252 self .voice_client = self .bandwidth_client .voice_client .client
5353 self .messaging_client = self .bandwidth_client .messaging_client .client
54- self .auth_client = self .bandwidth_client .two_factor_auth_client .client
54+ self .auth_client = self .bandwidth_client .two_factor_auth_client .mfa
5555
5656 def test_create_message (self ):
5757 body = MessageRequest ()
5858 body .application_id = MESSAGING_APPLICATION_ID
5959 body .to = [PHONE_NUMBER_INBOUND ]
6060 body .mfrom = PHONE_NUMBER_OUTBOUND
6161 body .text = "Python Monitoring"
62- response = self .messaging_client .create_message (ACCOUNT_ID , body = body )
62+ response = self .messaging_client .create_message (ACCOUNT_ID , body )
6363 self .assertTrue (len (response .body .id ) > 0 ) #validate that _some_ id was returned
6464
6565 def test_create_message_invalid_phone_number (self ):
@@ -69,7 +69,7 @@ def test_create_message_invalid_phone_number(self):
6969 body .mfrom = PHONE_NUMBER_OUTBOUND
7070 body .text = "Python Monitoring"
7171 try :
72- self .messaging_client .create_message (ACCOUNT_ID , body = body )
72+ self .messaging_client .create_message (ACCOUNT_ID , body )
7373 self .assertTrue (False )
7474 except MessagingException as e :
7575 self .assertTrue (len (e .description ) > 0 )
@@ -96,7 +96,7 @@ def test_create_call_and_get_call_state(self):
9696 body .to = PHONE_NUMBER_INBOUND
9797 body .application_id = VOICE_APPLICATION_ID
9898 body .answer_url = CALLBACK_URL
99- response = self .voice_client .create_call (ACCOUNT_ID , body = body )
99+ response = self .voice_client .create_call (ACCOUNT_ID , body )
100100 self .assertTrue (len (response .body .call_id ) > 1 )
101101
102102 #get phone call information
@@ -110,7 +110,7 @@ def test_create_call_invalid_phone_number(self):
110110 body .application_id = VOICE_APPLICATION_ID
111111 body .answer_url = CALLBACK_URL
112112 try :
113- self .voice_client .create_call (ACCOUNT_ID , body = body )
113+ self .voice_client .create_call (ACCOUNT_ID , body )
114114 self .assertTrue (False )
115115 except ApiErrorResponseException as e :
116116 self .assertTrue (len (e .description ) > 0 )
0 commit comments