input()
invocation at root level then the unit tests stopped working because importing would wait for input. At the time, I just commented out that part of the code (leaving just the function) wrote the unit test, then after I was finished, I uncommented it. But that's much nicer, since I can both run the unit test and have the file for submission to the online judge thing.