MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_select_options_clear

Method test_select_options_clear

core/tests/python/tests/test_web.py:774–780  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

772 assert len(select.options) == 2
773
774 def test_select_options_clear(self):
775 select = web.page.find("#test_select_element_to_clear")[0]
776 assert len(select.options) == 3
777
778 select.options.clear()
779
780 assert len(select.options) == 0
781
782 def test_select_element_add(self):
783 # GIVEN the existing select element with no options

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected