10000 Pass on muted parameter and add test to ensure no regressions · idelgado/twilio-python@fb43f65 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb43f65

Browse files
committed
Pass on muted parameter and add test to ensure no regressions
1 parent 3c5ade2 commit fb43f65

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

tests/unit/twiml/test_voice_response.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,25 @@ def test_conference(self):
333333
'<?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference beep="false" endConferenceOnExit="true" startConferenceOnEnter="true" waitUrl="">TestConferenceAttributes</Conference></Dial></Response>'
334334
)
335335

336+
def test_muted_conference(self):
337+
d = Dial()
338+
d.conference(
339+
'TestConferenceMutedAttribute',
340+
beep=False,
341+
muted=True,
342+
wait_url='',
343+
start_conference_on_enter=True,
344+
end_conference_on_exit=True
345+
)
346+
347+
r = VoiceResponse()
348+
r.append(d)
349+
350+
assert_equal(
351+
self.strip(r),
352+
'<?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference beep="false" endConferenceOnExit="true" muted="true" startConferenceOnEnter="true" waitUrl="">TestConferenceMutedAttribute</Conference></Dial></Response>'
353+
)
354+
336355

337356
class TestQueue(TwilioTest):
338357

twilio/http/validation_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from urlparse import urlparse
1+
from urllib.parse import urlparse
22

33
from collections import namedtuple
44

twilio/twiml/voice_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ def conference(self,
392392
"""
393393
return self.append(Conference(
394394
name,
395+
muted=muted,
395396
start_conference_on_enter=start_conference_on_enter,
396397
end_conference_on_exit=end_conference_on_exit,
397398
max_participants=max_participants,

0 commit comments

Comments
 (0)
0