8000 Voice response devx5021 and Python testing, compatibility by ilanbiala · Pull Request #346 · twilio/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

Voice response devx5021 and Python testing, compatibility #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 15, 2017
Prev Previous commit
Next Next commit
Pass on muted parameter and add test to ensure no regressions
  • Loading branch information
ilanbiala committed Jun 2, 2017
commit fb43f65b2f49a0dc2e58b8e55fc9b706058bc762
19 changes: 19 additions & 0 deletions tests/unit/twiml/test_voice_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,25 @@ def test_conference(self):
'<?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference beep="false" endConferenceOnExit="true" startConferenceOnEnter="true" waitUrl="">TestConferenceAttributes</Conference></Dial></Response>'
)

def test_muted_conference(self):
d = Dial()
d.conference(
'TestConferenceMutedAttribute',
beep=False,
muted=True,
wait_url='',
start_conference_on_enter=True,
end_conference_on_exit=True
)

r = VoiceResponse()
r.append(d)

assert_equal(
self.strip(r),
'<?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference beep="false" endConferenceOnExit="true" muted="true" startConferenceOnEnter="true" waitUrl="">TestConferenceMutedAttribute</Conference></Dial></Response>'
)


class TestQueue(TwilioTest):

Expand Down
2 changes: 1 addition & 1 deletion twilio/http/validation_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from urlparse import urlparse
from urllib.parse import urlparse

from collections import namedtuple

Expand Down
1 change: 1 addition & 0 deletions twilio/twiml/voice_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def conference(self,
"""
return self.append(Conference(
name,
muted=muted,
start_conference_on_enter=start_conference_on_enter,
end_conference_on_exit=end_conference_on_exit,
max_participants=max_participants,
Expand Down
0