Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Specify conference in a nested Dial element.

:param name: friendly name of conference
:param bool muted: keep this participant muted
:param bool beep: play a beep when this participant enters/leaves
:param bool startConferenceOnEnter: start conf when this participants joins
:param bool endConferenceOnExit: end conf when this participants leaves
:param waitUrl: TwiML url that executes before conference starts
:param waitMethod: HTTP method for waitUrl GET/POST

src/p/y/python-twilio2-HEAD/tests/test_twiml.py   python-twilio2(Download)
    def testAddConference(self):
        """ add a conference to a dial"""
        r = Response()
        d = twiml.Dial()
        d.append(twiml.Conference("My Room"))
    def testAddAttribute(self):
        """add attribute"""
        r = twiml.Conference("MyRoom",foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<?xml version="1.0" encoding="utf-8"?><Conference foo="bar">MyRoom</Conference>')
 
 
    def testBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twiml.Conference("Hello"))
        self.assertRaises(TwimlException, verb.append, twiml.Redirect())
        self.assertRaises(TwimlException, verb.append, twiml.Dial())
        self.assertRaises(TwimlException, verb.append, twiml.Conference(""))
        self.assertRaises(TwimlException, verb.append, twiml.Sms(""))
 

src/t/w/twilio-python-HEAD/tests/test_twiml.py   twilio-python(Download)
    def testAddConference(self):
        """ add a conference to a dial"""
        r = Response()
        d = twiml.Dial()
        d.append(twiml.Conference("My Room"))
    def testAddAttribute(self):
        """add attribute"""
        r = twiml.Conference("MyRoom", foo="bar")
        r = self.strip(r)
        assert_equal(r, '<?xml version="1.0" encoding="UTF-8"?><Conference foo="bar">MyRoom</Conference>')
 
    def testBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twiml.Conference("Hello"))
        self.assertRaises(TwimlException, verb.append, twiml.Redirect())
        self.assertRaises(TwimlException, verb.append, twiml.Dial())
        self.assertRaises(TwimlException, verb.append, twiml.Conference(""))
        self.assertRaises(TwimlException, verb.append, twiml.Sms(""))