'Extract character data as UTF-8 using L{bytes}.'

def test_characterDataBytes(self):

    element = domish.Element((u'testns', u'foo'))
    element.addContent(u'\u2603')
    text = bytes(element)
    self.assertEqual(u'\u2603'.encode('utf-8'), text)
    self.assertIsInstance(text, bytes)
