'Test getting an element for an error with a text.'

def test_getElementText(self):

    e = error.BaseError('feature-not-implemented', u'text')
    element = e.getElement()
    self.assertEqual(len(element.children), 2)
    self.assertEqual(unicode(element.text), 'text')
    self.assertEqual(element.text.getAttribute((NS_XML, 'lang')), None)
