MCPcopy
hub / github.com/django/django / assertSelectedOptions

Method assertSelectedOptions

django/contrib/admin/tests.py:238–243  ·  view source on GitHub ↗

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

(self, selector, values)

Source from the content-addressed store, hash-verified

236 self._assertOptionsValues("%s > option" % selector, values)
237
238 def assertSelectedOptions(self, selector, values):
239 """
240 Assert that the <SELECT> widget identified by `selector` has the
241 selected options with the given `values`.
242 """
243 self._assertOptionsValues("%s > option:checked" % selector, values)
244
245 def is_disabled(self, selector):
246 """

Callers 1

Calls 1

_assertOptionsValuesMethod · 0.95

Tested by

no test coverage detected