'Test creating a reply stanza.'

def testReply(self):

    stanza = StanzaBase()
    stanza['to'] = 'recipient@example.com'
    stanza['from'] = 'sender@example.com'
    stanza['payload'] = ET.Element('{foo}foo')
    stanza.reply()
    self.failUnless(str((stanza['to'] == 'sender@example.com')), "Stanza    reply    did    not    change    'to'    attribute.")
    self.failUnless((stanza['payload'] == []), 'Stanza    reply    did    not    empty    stanza    payload.')
