Tests: Accessory functions to create temporary files
Tests: Accessory functions to create temporary files

These use tempfile.NamedTemporaryFile but allow execution without
raising "Text file busy".
The file is removed at exit (of the process) so no cleanup is necessary.

tbabej/task,tbabej/task,tbabej/task,tbabej/task,tbabej/task