Did I find the right examples for you? yes no

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

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testRecordEmpty(self):
        """should record"""
        r = twilio.Response()
        r.append(twilio.Record())
        r = self.strip(r)
    def testRecordActionMethod(self):
        """should record with an action and a get method"""
        r = twilio.Response()
        r.append(twilio.Record(action="example.com", method="GET"))
        r = self.strip(r)
    def testRecordMaxlengthFinishTimeout(self):
        """should record with an maxlength, finishonkey, and timeout"""
        r = twilio.Response()
        r.append(twilio.Record(timeout=4,finishOnKey="#", maxLength=30))
        r = self.strip(r)
    def testRecordTranscribeCallback(self):
        """should record with a transcribe and transcribeCallback"""
        r = twilio.Response()
        r.append(twilio.Record(transcribeCallback="example.com"))
        r = self.strip(r)
    def testPlayAddAttribute(self):
        """add attribute"""
        r = twilio.Record("",foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<Record foo="bar"/>')