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

def test_getElementTextLang(self):

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