def METHOD_NAME(simu, output_type, expectation):
    with expectation:
        prepare(simu, output_type)
        start(simu)
        wait_acq_finished(simu, timeout = (ACQ_EXPO_TIME * ACQ_NB_FRAMES + 1))
        img_size = simu.image().getImageDim().getSize()
        for i in range(0, ACQ_NB_FRAMES):
            frm = simu.ReadImage(i)
            assert frm.buffer.shape == (img_size.getHeight(), img_size.getWidth())
            if output_type is None:
                assert frm.buffer.dtype == np.int32
            else:
                assert frm.buffer.dtype == image_type_to_dtype(output_type)
            # Check upper left corner pixel
            begin = i * ACC_NB_FRAMES
            r = np.arange(begin, begin + ACC_NB_FRAMES, dtype = frm.buffer.dtype)
            expected = r.sum()
            assert frm.buffer[0, 0] == expected
            # Check all pixels
            comparison = frm.buffer == np.full(frm.buffer.shape, expected)
            assert comparison.all()