I'm trying to figure out how I would go about creating a test suite for a while loop that outputs a basic string. I have a pretty basic countdown timer, and I just want to test it to see if it works properly. I've done unit test before, but never for loops. Below is the code I'm trying to test. I just want to be able to get the 'OK' back. Thank you in advance for all the help!
import time
timer = 11
while timer > 0:
timer = timer - 1
print(timer)
time.sleep(1)
print("Times up!")