def METHOD_NAME(delay):
    """
    Ensure that NEST sets `max_delay` correctly from delay in `syn_spec`.
    This test ensures that `max_delay` is set correctly for delays
    that are not multiples of the resolution.
    """
    nrn = nest.Create("iaf_psc_alpha")
    conn = nest.Connect(nrn, nrn, "one_to_one", {"delay": delay}, return_synapsecollection=True)
    expected_delay = 0.9
    assert conn.delay == expected_delay
    assert nest.max_delay == expected_delay