File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ def setUp(self):
1212 self .api_key = os .environ ["TWILIO_API_KEY" ]
1313 self .api_secret = os .environ ["TWILIO_API_SECRET" ]
1414 self .account_sid = os .environ ["TWILIO_ACCOUNT_SID" ]
15+ self .assistant_id = os .environ ["ASSISTANT_ID" ]
1516 self .client = Client (
1617 username = self .api_key ,
1718 password = self .api_secret ,
@@ -65,6 +66,11 @@ def test_list_available_numbers(self):
6566 self .assertIsNotNone (toll_free_numbers )
6667 self .assertEqual (len (toll_free_numbers ), 2 )
6768
69+ def test_fetch_assistant (self ):
70+ assistant = self .client .assistants .v1 .assistants (self .assistant_id ).fetch ()
71+ self .assertIsNotNone (assistant )
72+ self .assertEqual (assistant .account_sid , self .account_sid )
73+
6874 def test_calling_twiml_string (self ):
6975 call = self .client .calls .create (
7076 to = self .to_number , from_ = self .from_number , twiml = str (self .voice_twiml )
You can’t perform that action at this time.
0 commit comments