def load_test_file(name): "Opens test files saved in the `files` directory." cwd = environ.Path(__file__) - 1 filepath = cwd('files', name) return open(filepath, 'rb')