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

Method test_attr_empty_string

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

Source from the content-addressed store, hash-verified

482 '''
483
484 def test_attr_empty_string(self):
485 d = pq('<div>')
486 d.attr('value', '')
487 self.assertEqual(d.outer_html(), '<div value=""></div>')
488 self.assertEqual(d.outer_html(method="xml"), '<div value=""/>')
489
490 def test_remove(self):
491 d = pq(self.html)

Callers

nothing calls this directly

Calls 2

attrMethod · 0.80
outer_htmlMethod · 0.80

Tested by

no test coverage detected