Python rest_framework.serializers.MultipleChoiceField() Examples
The following are 1
code examples of rest_framework.serializers.MultipleChoiceField().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
rest_framework.serializers
, or try the search function
.
Example #1
Source File: test_field_converter.py From graphene-django with MIT License | 5 votes |
def test_should_multiplechoicefield_convert_to_list_of_enum(): field = assert_conversion( serializers.MultipleChoiceField, graphene.List, choices=[1, 2, 3] ) assert issubclass(field.of_type, graphene.Enum)