Copied _show_file function over to tests/__init__.py, since it's shared by most of the test cases.