Skip to content

Commit a7b0abe

Browse files
committed
added cluster test to fetch assistant
1 parent f258caf commit a7b0abe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/cluster/test_cluster.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)