Did I find the right examples for you? yes no

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

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testAddConference(self):
        """ add a conference to a dial"""
        r = twilio.Response()
        d = twilio.Dial()
        d.append(twilio.Conference("My Room"))
    def testAddAttribute(self):
        """add attribute"""
        r = twilio.Conference("MyRoom",foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<Conference foo="bar">MyRoom</Conference>')
 
 
    def testBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twilio.Conference("Hello"))
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Redirect())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Dial())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Conference(""))
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Sms(""))