          scheme = versioning.QueryParameterVersioning
          view = ExampleView.as_view(versioning_class=scheme)
          view(request=request)
  
  
  class TestSimpleMetadataFieldInfo(TestCase):
      def test_null_boolean_field_info_type(self):
          options = metadata.SimpleMetadata()
          field_info = options.get_field_info(serializers.NullBooleanField())
 
</s>
    def test_list_serializer_metadata_returns_info_about_fields_of_child_serializer(self):
        class ExampleSerializer(serializers.Serializer):
            integer_field = serializers.IntegerField(max_value=10)
            char_field = serializers.CharField(required=False)

        class ExampleListSerializer(serializers.ListSerializer):
            pass

        options = metadata.SimpleMetadata()
        child_serializer = ExampleSerializer()
        list_serializer = ExampleListSerializer(child=child_serializer)
        assert options.get_serializer_info(list_serializer) == options.get_serializer_info(child_serializer)

          scheme = versioning.QueryParameterVersioning
          view = ExampleView.as_view(versioning_class=scheme)
          view(request=request)
  
    def test_list_serializer_metadata_returns_info_about_fields_of_child_serializer(self):
        class ExampleSerializer(serializers.Serializer):
            integer_field = serializers.IntegerField(max_value=10)
            char_field = serializers.CharField(required=False)

        class ExampleListSerializer(serializers.ListSerializer):
            pass

        options = metadata.SimpleMetadata()
        child_serializer = ExampleSerializer()
        list_serializer = ExampleListSerializer(child=child_serializer)
        assert options.get_serializer_info(list_serializer) == options.get_serializer_info(child_serializer)

  
  class TestSimpleMetadataFieldInfo(TestCase):
      def test_null_boolean_field_info_type(self):
          options = metadata.SimpleMetadata()
          field_info = options.get_field_info(serializers.NullBooleanField())
keep keep keep add keep keep keep keep keep
 Add remaining tests for metadata (#4855)
tests/test_metadata.py