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

Method test_parameterless_callback

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

Source from the content-addressed store, hash-verified

374 )
375
376 def test_parameterless_callback(self):
377 S = pq(self.html)
378 self.assertEqual(S('li').map(
379 lambda: S(this).html()), # NOQA
380 ['Coffee', 'Tea', 'Milk']
381 )
382
383
384class TestHook(TestCase):

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
htmlMethod · 0.80

Tested by

no test coverage detected