def METHOD_NAME(self):
    xml = '''
        <root foo="bar" spam="中文">
            <normal>foo</normal>
            <chinese>中文</chinese>
            <foo><bar>spam</bar></foo>
        </root>
    '''
    doc = compat_etree_fromstring(xml.encode())
    self.assertTrue(isinstance(doc.attrib['foo'], str))
    self.assertTrue(isinstance(doc.attrib['spam'], str))
    self.assertTrue(isinstance(doc.find('normal').text, str))
    self.assertTrue(isinstance(doc.find('chinese').text, str))
    self.assertTrue(isinstance(doc.find('foo/bar').text, str))