   A function that executes `inputs_for/4` and
   extracts its inner contents for assertion.
   """
-  def safe_inputs_for(field, opts \\ [], fun) do
+  def safe_inputs_for(field, opts \\ [multipart: false], fun) do
     mark = "--PLACEHOLDER--"
-
+    {multipart, opts} = Keyword.pop(opts, :multipart, false)
     conn =
       Plug.Test.conn(:get, "/foo", %{"search" => %{
         "date" => %{"year" => "2020", "month" => "4", "day" => "17"},

  end

  ## Cardinality many

  test "many: inputs_for/4 with default and field is not present" do
    contents =

      }})

    contents =
      safe_to_string form_for(conn, "/", [as: :search, multipart: multipart], fn f ->
        html_escape [mark, inputs_for(f, field, opts, fun), mark]
      end)

    [_, inner, _] = String.split(contents, mark)
    inner
  end


  ## Cardinality one

