MCPcopy Create free account
hub / github.com/gawel/pyquery / test_persistent_namespaces

Method test_persistent_namespaces

tests/test_pyquery.py:878–882  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

876 self.assertEqual(repr(val), repr(expected))
877
878 def test_persistent_namespaces(self):
879 d = pq(self.xml.encode('utf8'), parser='xml',
880 namespaces=self.namespaces)
881 val = d('bar|blah').text()
882 self.assertEqual(repr(val), repr('What'))
883
884 def test_namespace_traversal(self):
885 d = pq(self.xml.encode('utf8'), parser='xml',

Callers

nothing calls this directly

Calls 1

textMethod · 0.80

Tested by

no test coverage detected