'Testing adding extended stanza address.'

def testAddAddress(self):

    msg = self.Message()
    msg['addresses'].addAddress(atype='to', jid='to@header1.org')
    self.check(msg, '\n                                <message>\n                                        <addresses    xmlns="http://jabber.org/protocol/address">\n                                                <address    jid="to@header1.org"    type="to"    />\n                                        </addresses>\n                                </message>\n                                ')
    msg = self.Message()
    msg['addresses'].addAddress(atype='replyto', jid='replyto@header1.org', desc='Reply    address')
    self.check(msg, '\n                                        <message>\n                                                <addresses    xmlns="http://jabber.org/protocol/address">\n                                                        <address    jid="replyto@header1.org"    type="replyto"    desc="Reply    address"    />\n                                                </addresses>\n                                        </message>\n                                ')
