Python rest_framework.serializers.MultipleChoiceField() Examples
The following are 1 code examples for showing how to use rest_framework.serializers.MultipleChoiceField(). These examples are extracted from open source projects. 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 check out the related API usage on the sidebar.
|Project: graphene-django Author: graphql-python File: test_field_converter.py License: 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)