MCPcopy
hub / github.com/django/django / assertSelectOptions

Method assertSelectOptions

django/contrib/admin/tests.py:231–236  ·  view source on GitHub ↗

Assert that the <SELECT> widget identified by `selector` has the options with the given `values`.

(self, selector, values)

Source from the content-addressed store, hash-verified

229 )
230
231 def assertSelectOptions(self, selector, values):
232 """
233 Assert that the <SELECT> widget identified by `selector` has the
234 options with the given `values`.
235 """
236 self._assertOptionsValues("%s > option" % selector, values)
237
238 def assertSelectedOptions(self, selector, values):
239 """

Callers 3

test_filterMethod · 0.80
test_back_button_bugMethod · 0.80

Calls 1

_assertOptionsValuesMethod · 0.95

Tested by

no test coverage detected