'test of failure stanza'

def testFailure(self):

    msg = self.Message()
    msg['from'] = 'device@clayster.com'
    msg['to'] = 'master@clayster.com/amr'
    msg['failure']['seqnr'] = '3'
    msg['failure']['done'] = 'true'
    msg['failure']['error']['nodeId'] = 'Device01'
    msg['failure']['error']['timestamp'] = '2013-03-07T17:13:30'
    msg['failure']['error']['text'] = 'Timeout.'
    self.check(msg, "\n                                                <message    from='device@clayster.com'\n                                                                                    to='master@clayster.com/amr'>\n                                                                <failure    xmlns='urn:xmpp:iot:sensordata'    seqnr='3'    done='true'>\n                                                                                <error    nodeId='Device01'    timestamp='2013-03-07T17:13:30'>\n                                                                                                Timeout.</error>\n                                                                </failure>\n                                                </message>\n                                ")
