MCPcopy
hub / github.com/django/django / test_iterable

Method test_iterable

tests/utils_tests/test_choices.py:191–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 self.assertEqual(normalize_choices(choices), self.expected)
190
191 def test_iterable(self):
192 choices = [
193 ("C", _("Club")),
194 ("D", _("Diamond")),
195 ("H", _("Heart")),
196 ("S", _("Spade")),
197 ]
198 self.assertEqual(normalize_choices(choices), self.expected)
199
200 def test_iterator(self):
201 def generator():

Callers

nothing calls this directly

Calls 1

normalize_choicesFunction · 0.90

Tested by

no test coverage detected