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

Method test_remove_namespaces

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

Source from the content-addressed store, hash-verified

870 self.assertEqual(repr(val), repr(expected))
871
872 def test_remove_namespaces(self):
873 expected = 'What'
874 d = pq(self.xml.encode('utf8'), parser='xml').remove_namespaces()
875 val = d('blah').text()
876 self.assertEqual(repr(val), repr(expected))
877
878 def test_persistent_namespaces(self):
879 d = pq(self.xml.encode('utf8'), parser='xml',

Callers

nothing calls this directly

Calls 2

remove_namespacesMethod · 0.80
textMethod · 0.80

Tested by

no test coverage detected