def METHOD_NAME():
    """Test converting press times to HMFCO and RTs."""
    # Simple example
    targets = [0., 1.]
    foils = [0.5, 1.5]
    presses = [0.1, 1.6]  # presses right at tmin/tmax
    hmfco = [1, 1, 0, 2, 1]
    rts = [[0.6], []]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    presses = []  # no presses
    hmfco = [0, 2, 0, 2, 0]
    rts = [[], []]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    presses = [0.65, 1.601]  # just past the boundary
    hmfco = [0, 2, 2, 0, 0]
    rts = [[], [0.15, 0.101]]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    presses = [0.75, 1.55]  # smaller than tmin
    hmfco = [1, 1, 1, 1, 0]
    rts = [[0.55], [0.25]]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    presses = [0.76, 2.11]  # greater than tmax
    hmfco = [0, 2, 1, 1, 1]
    rts = [[], [0.26]]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    # A complicated example: multiple preses to targ
    targets = [0, 2, 3]
    foils = [1, 4]
    tmin, tmax = 0., 0.5
    presses = [0.111, 0.2, 1.101, 1.3, 2.222, 2.333, 2.7, 5.]
    hmfco = [2, 1, 1, 1, 2]
    rts = [[0.111, 0.222], [0.101]]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    presses = []  # no presses
    hmfco = [0, 3, 0, 2, 0]
    rts = [[], []]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    presses = [-1, 7, 8]  # all errant presses
    hmfco = [0, 3, 0, 2, 3]
    rts = [[], []]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    # lots of presses
    targets = [1, 2, 5, 6, 7]
    foils = [0, 3, 4, 8]
    presses = [0.201, 2.101, 4.202, 5.102, 6.103, 10.]
    hmfco = [3, 2, 2, 2, 1]
    rts = [[0.101, 0.102, 0.103], [0.201, 0.202]]
    assert_hmfc(presses, targets, foils, hmfco, rts)
    # Bad inputs
    pytest.raises(ValueError, ea.press_times_to_hmfc,
                  presses, targets, foils, tmin, 1.1)
    pytest.raises(ValueError, ea.press_times_to_hmfc,
                  presses, targets, foils, tmin, tmax, 'foo')