MCPcopy
hub / github.com/yourlabs/django-autocomplete-light / assert_labels

Method assert_labels

src/dal/test/stories.py:406–413  ·  view source on GitHub ↗

Assert that all labels match texts.

(self, texts)

Source from the content-addressed store, hash-verified

404 return self.case.browser.evaluate_script('window.GET_VALUES')
405
406 def assert_labels(self, texts):
407 """Assert that all labels match texts."""
408 labels = self.get_labels()
409
410 for text in texts:
411 self.case.assertIn(text, labels)
412
413 self.case.assertEqual(len(texts), len(labels))
414
415 def assert_values(self, values):
416 """Assert that the actual field values matches values."""

Calls 1

get_labelsMethod · 0.95