MCPcopy Index your code
hub / github.com/python/cpython / test_test_find_with_ns

Method test_test_find_with_ns

Lib/test/test_xml_etree.py:3513–3521  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3511 ['tag', 'tag'])
3512
3513 def test_test_find_with_ns(self):
3514 e = ET.XML(SAMPLE_XML_NS)
3515 self.assertEqual(summarize_list(e.findall('tag')), [])
3516 self.assertEqual(
3517 summarize_list(e.findall("{http://effbot.org/ns}tag")),
3518 ['{http://effbot.org/ns}tag'] * 2)
3519 self.assertEqual(
3520 summarize_list(e.findall(".//{http://effbot.org/ns}tag")),
3521 ['{http://effbot.org/ns}tag'] * 3)
3522
3523 def test_findall_different_nsmaps(self):
3524 root = ET.XML('''

Callers

nothing calls this directly

Calls 3

summarize_listFunction · 0.85
assertEqualMethod · 0.45
findallMethod · 0.45

Tested by

no test coverage detected