'L{domhelpers.getNodeText} returns a C{unicode} string when text
nodes are represented in the DOM with unicode, whether or not there
are non-ASCII characters present.'

def test_getNodeUnicodeText(self):

    node = self.dom.parseString('<foo>bar</foo>')
    text = domhelpers.getNodeText(node)
    self.assertEqual(text, u'bar')
    self.assertIsInstance(text, unicode)
    node = self.dom.parseString(u'<foo>\u2603</foo>'.encode('utf-8'))
    text = domhelpers.getNodeText(node)
    self.assertEqual(text, u'\u2603')
    self.assertIsInstance(text, unicode)
