diff --git a/tests/unit/twiml/test_voice_response.py b/tests/unit/twiml/test_voice_response.py index ea80f4dda7..e00c78f972 100644 --- a/tests/unit/twiml/test_voice_response.py +++ b/tests/unit/twiml/test_voice_response.py @@ -544,6 +544,26 @@ def test_empty(self): '' ) + def test_gather_full(self): + r = VoiceResponse() + r.gather( + action='action', + method='method', + timeout='timeout', + finish_on_key='finish_on_key', + num_digits='num_digits', + partial_result_callback='partial_result_callback', + partial_result_callback_method='partial_result_callback_method', + language='language', + hints='hints', + barge_in='barge_in', + acknowledge_sound_url='acknowledge_sound_url', + ) + assert_equal( + self.strip(r), + '' + ) + def test_gather_say(self): g = Gather() g.say('Hello') diff --git a/twilio/twiml/voice_response.py b/twilio/twiml/voice_response.py index 59d2593aef..146b3e2b64 100644 --- a/twilio/twiml/voice_response.py +++ b/twilio/twiml/voice_response.py @@ -135,6 +135,12 @@ def gather(self, timeout=timeout, finish_on_key=finish_on_key, num_digits=num_digits, + partial_result_callback=partial_result_callback, + partial_result_callback_method=partial_result_callback_method, + language=language, + hints=hints, + barge_in=barge_in, + acknowledge_sound_url=acknowledge_sound_url, **kwargs ))