Skip to content

Commit e8dd819

Browse files
Update test_gather.py
1 parent c28e266 commit e8dd819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/bxml/test_gather.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ def setUp(self):
4545

4646
def test_to_bxml(self):
4747
if os.environ['PYTHON_VERSION'] == '3.7':
48-
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherUrl="test.com" gatherMethod="POST" gatherFallback_url="fallback-test.com" gatherFallbackMethod="GET" interDigitTimeout="1" maxDigits="5" password="pass" repeatCount="2" tag="tag" terminatingDigits="2" username="user"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio></Gather>'
48+
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherFallbackMethod="GET" gatherFallbackUrl="fallback-test.com" gatherMethod="POST" gatherUrl="test.com" interDigitTimeout="1" maxDigits="5" password="pass" repeatCount="2" tag="tag" terminatingDigits="2" username="user"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio></Gather>'
4949
else:
5050
expected = '<Gather gatherUrl="test.com" gatherMethod="POST" gatherFallbackUrl="fallback-test.com" gatherFallbackMethod="GET" username="user" password="pass" fallbackUsername="user" fallbackPassword="pass" tag="tag" terminatingDigits="2" maxDigits="5" interDigitTimeout="1" firstDigitTimeout="3" repeatCount="2"><PlayAudio username="user" password="pass">https://audio.url/audio1.wav</PlayAudio></Gather>'
5151
assert(expected == self.gather.to_bxml())
5252

5353
def test_add_verb(self):
5454
if os.environ['PYTHON_VERSION'] == '3.7':
55-
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherUrl="test.com" gatherMethod="POST" gatherFallbackUrl="fallback-test.com" gatherFallbackMethod="GET" interDigitTimeout="1" maxDigits="5" password="pass" repeatCount="2" tag="tag" terminatingDigits="2" username="user"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio><SpeakSentence>Hello. Your number is &lt;say-as interpret-as="telephone"&gt;asdf&lt;/say-as&gt;, lets play a game. What is 10 + 3. Press the pound key when finished.</SpeakSentence></Gather>'
55+
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherFallbackMethod="GET" gatherFallbackUrl="fallback-test.com" gatherMethod="POST" gatherUrl="test.com" interDigitTimeout="1" maxDigits="5" password="pass" repeatCount="2" tag="tag" terminatingDigits="2" username="user"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio><SpeakSentence>Hello. Your number is &lt;say-as interpret-as="telephone"&gt;asdf&lt;/say-as&gt;, lets play a game. What is 10 + 3. Press the pound key when finished.</SpeakSentence></Gather>'
5656
else:
5757
expected = '<Gather gatherUrl="test.com" gatherMethod="POST" gatherFallbackUrl="fallback-test.com" gatherFallbackMethod="GET" username="user" password="pass" fallbackUsername="user" fallbackPassword="pass" tag="tag" terminatingDigits="2" maxDigits="5" interDigitTimeout="1" firstDigitTimeout="3" repeatCount="2"><PlayAudio username="user" password="pass">https://audio.url/audio1.wav</PlayAudio><SpeakSentence>Hello. Your number is &lt;say-as interpret-as="telephone"&gt;asdf&lt;/say-as&gt;, lets play a game. What is 10 + 3. Press the pound key when finished.</SpeakSentence></Gather>'
5858
self.gather.add_verb(self.speak_sentence)

0 commit comments

Comments
 (0)