'Extract character data using L{unicode}.'

def test_characterData(self):

    element = domish.Element((u'testns', u'foo'))
    element.addContent(u'somecontent')
    text = unicode(element)
    self.assertEqual(u'somecontent', text)
    self.assertIsInstance(text, unicode)
