def METHOD_NAME(p, axisSpec, tickSpecs, textSpecs):
    viewPixelSize = view.viewPixelSize()
    assert isclose(view.mapToView(axisSpec[1]).x(), 0.25, abs_tol=viewPixelSize[0])
    assert isclose(view.mapToView(axisSpec[2]).x(), 0.75, abs_tol=viewPixelSize[0])