8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f154c4 commit 4bba819Copy full SHA for 4bba819
tests/twimltests.py
@@ -254,6 +254,22 @@ def testConvience(self):
254
def testBadAppend(self):
255
""" should raise exceptions for wrong appending"""
256
self.improperAppend(twilio.Sms("Hello"))
257
+
258
+class TestDial(TwilioTest):
259
260
+ def testDial(self):
261
+ """ should redirect the call"""
262
+ r = twilio.Response()
263
+ r.append(twilio.Dial("1231231234"))
264
+ r = self.strip(r)
265
+ self.assertEquals(r, '<Response><Dial>1231231234</Dial></Response>')
266
267
+ def testConvienceMethod(self):
268
+ """ should dial to a url via post"""
269
270
+ r.addDial()
271
272
+ self.assertEquals(r, '<Response><Dial/></Response>')
273
274
if __name__ == '__main__':
275
unittest.main()
0 commit comments