def test_panzoom_zoom_keyboard(qtbot, canvas_pz, panzoom):
    c = canvas_pz
    pz = panzoom

    # Zoom with keyboard.
    c.events.key_press(key=keys.Key('+'))
    assert pz.pan == [0, 0]
    assert pz.zoom[0] > 1
    assert 1 > pz.zoom[1]

    # Unzoom with keyboard.
    c.events.key_press(key=keys.Key('-'))
    assert pz.pan == [0, 0]
    assert pz.zoom == [1, 1]
dataset/ETHPy150Open kwikteam/phy/phy/plot/tests/test_panzoom.py/test_panzoom_zoom_keyboard/swapped operands of `>`