MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / test_nested

Method test_nested

dm_control/utils/xml_tools_test.py:29–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27class XmlHelperTest(absltest.TestCase):
28
29 def test_nested(self):
30 element = etree.Element('inserted')
31 xml_tools.nested_element(element, depth=2)
32 level_1 = element.find('inserted')
33 self.assertIsNotNone(level_1)
34 level_2 = level_1.find('inserted')
35 self.assertIsNotNone(level_2)
36
37 def test_tostring(self):
38 xml_str = """

Callers

nothing calls this directly

Calls 1

findMethod · 0.95

Tested by

no test coverage detected