'Test marking a stanza as an error.'

def testError(self):

    stanza = StanzaBase()
    stanza['type'] = 'get'
    stanza.error()
    self.failUnless((stanza['type'] == 'error'), "Stanza    type    is    not    'error'    after    calling    error()")
