(self)
| 4029 | |
| 4030 | class NamespaceParseTest(unittest.TestCase): |
| 4031 | def test_find_with_namespace(self): |
| 4032 | nsmap = {'h': 'hello', 'f': 'foo'} |
| 4033 | doc = ET.fromstring(SAMPLE_XML_NS_ELEMS) |
| 4034 | |
| 4035 | self.assertEqual(len(doc.findall('{hello}table', nsmap)), 1) |
| 4036 | self.assertEqual(len(doc.findall('.//{hello}td', nsmap)), 2) |
| 4037 | self.assertEqual(len(doc.findall('.//{foo}name', nsmap)), 1) |
| 4038 | |
| 4039 | |
| 4040 | class ElementSlicingTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected