MCPcopy
hub / github.com/django/django / test_mapping

Method test_mapping

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

Source from the content-addressed store, hash-verified

180 get_choices_spy.assert_called_once()
181
182 def test_mapping(self):
183 choices = {
184 "C": _("Club"),
185 "D": _("Diamond"),
186 "H": _("Heart"),
187 "S": _("Spade"),
188 }
189 self.assertEqual(normalize_choices(choices), self.expected)
190
191 def test_iterable(self):
192 choices = [

Callers

nothing calls this directly

Calls 1

normalize_choicesFunction · 0.90

Tested by

no test coverage detected