def assert_outbound_message(self, msg, content, callback, continue_session=True):
    headertext = ('<headertext>%s</headertext>' % content)
    if continue_session:
        options = ('<options><option callback="%s" command="1" display="false" order="1" /></options>' % callback)
    else:
        options = ''
    xml = ''.join(['<request>', headertext, options, '</request>'])
    self.assertEqual(msg, xml)
def assert_outbound_message(self, msg, content, callback, continue_session=True):
    headertext = ('<headertext>%s</headertext>' % content)
    if continue_session:
        options = ('<options><option callback="%s" command="1" display="false" order="1" /></options>' % callback)
    else:
        options = 
    xml = .join(['<request>', headertext, options, '</request>'])
    self.assertEqual(msg, xml)