'Testing delivered attribute of extended stanza addresses.'

def testDelivered(self):

    xmlstring = '\n                                        <message>\n                                                <addresses    xmlns="http://jabber.org/protocol/address">\n                                                        <address    %s    jid="to@header1.org"    type="to"    />\n                                                </addresses>\n                                        </message>\n                                '
    msg = self.Message()
    addr = msg['addresses'].addAddress(jid='to@header1.org', atype='to')
    self.check(msg, (xmlstring % ''))
    addr['delivered'] = True
    self.check(msg, (xmlstring % 'delivered="true"'))
    addr['delivered'] = False
    self.check(msg, (xmlstring % ''))
