'test of request stanza'

def testRejected(self):

    iq = self.Iq()
    iq['type'] = 'error'
    iq['from'] = 'device@clayster.com'
    iq['to'] = 'master@clayster.com/amr'
    iq['id'] = '4'
    iq['rejected']['seqnr'] = '4'
    iq['rejected']['error'] = 'Access    denied.'
    self.check(iq, "\n                                                <iq    type='error'\n                                                                from='device@clayster.com'\n                                                                to='master@clayster.com/amr'\n                                                                id='4'>\n                                                                <rejected    xmlns='urn:xmpp:iot:sensordata'    seqnr='4'>\n                                                                                <error>Access    denied.</error>\n                                                                </rejected>\n                                                </iq>\n                                ")
