Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testHangup(self):
        """convenience: should Hangup to a url via POST"""
        r = twilio.Response()
        r.append(twilio.Hangup())
        r = self.strip(r)
    def testBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twilio.Hangup())
 
class TestSms(TwilioTest):
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Gather())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Record())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Hangup())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Redirect())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Dial())