MCPcopy Index your code
hub / github.com/encode/django-rest-framework / get_items

Function get_items

tests/test_fields.py:643–649  ·  view source on GitHub ↗
(mapping_or_list_of_two_tuples)

Source from the content-addressed store, hash-verified

641# ----------------------------------------
642
643def get_items(mapping_or_list_of_two_tuples):
644 # Tests accept either lists of two tuples, or dictionaries.
645 if isinstance(mapping_or_list_of_two_tuples, dict):
646 # {value: expected}
647 return mapping_or_list_of_two_tuples.items()
648 # [(value, expected), ...]
649 return mapping_or_list_of_two_tuples
650
651
652class FieldValues:

Callers 5

test_valid_inputsMethod · 0.85
test_invalid_inputsMethod · 0.85
test_outputsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected