def METHOD_NAME(tmpdir):
    '''Test that if there is an error finding the input file specified in
    filename argument then an exception is raised in the expected way.
    '''
    with pytest.raises(ParseError) as excinfo:
        _ = parse_fp2(str(tmpdir.join("does_not_exist.f90")))
    assert "Failed to parse file" in str(excinfo.value)
    assert "Error returned was ' [Errno 2] No such file or directory" \
        in str(excinfo.value)