def testImportXML(self):

        assertEqual = self.assertEqual
        assertTrue = self.assertTrue

        xmlstr = """
<s3xml>

    <resource name="pr_person">

        <data field="first_name">Jason</data>
        <data field="last_name">Test</data>
        <data field="initials">JT</data>
        <data field="date_of_birth" value="1922-03-15"/>

        <resource name="pr_contact">
            <data field="contact_method">EMAIL</data>
            <data field="value">json@example.com</data>
        </resource>

        <resource name="pr_contact">
            <data field="contact_method">SMS</data>
            <data field="value">+123456789</data>
        </resource>

    </resource>

</s3xml>"""

        xmltree = etree.ElementTree(etree.fromstring(xmlstr))

        resource = current.s3db.resource("pr_person")
        msg = resource.import_xml(xmltree)

        from gluon.contrib import simplejson as json
        msg = json.loads(msg)

        assertEqual(msg["status"], "success")
        assertEqual(msg["statuscode"], "200")
        assertEqual(msg["records"], 1)
        assertTrue("created" in msg)
        assertTrue(isinstance(msg["created"], list))
        assertTrue(len(msg["created"]) == 1)

    # -------------------------------------------------------------------------
Test if the help attribute is correct.
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/ResourceImportTests.testImportXML--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/tests/test_tvtk.py/TestTVTK.test_help_trait