Pytest asserting from another function's callback

I am using pytest to test an airplane state transition. I am testing the landing() function that is predefined and calling it from another function. It looks something like this:

def landing():

In my testing module,, I am calling this landing() function, however, I want to be able to assert the altitude values before each sleep.

def test_plane_actions():
    # Do some setups
    # assert
    plane_actions.landing() # I want to assert the altitudes in here from this function.

Is there a way to have the landing() function callback the module during each sleep period and make an assert during each sleep period? Or perhaps a delayed assert? Let's assume we cannot decompose the landing() function and I want to be able to just call it in the