Convert the code at the end of `bpython/curtsiesfrontend/filewatch.py` to a proper unit test in `bpython.tests`.
Convert the code at the end of
bpython/curtsiesfrontend/filewatch.pyto a proper unit test inbpython.tests.