'Test getting an element for a plain stanza error.'

def test_getElementPlain(self):

    e = error.StanzaError('feature-not-implemented')
    element = e.getElement()
    self.assertEqual(element.uri, None)
    self.assertEqual(element['type'], 'cancel')
    self.assertEqual(element['code'], '501')
