'Test getting an element for a stanza error with a given type.'

def test_getElementType(self):

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