In test_write_index_file use difflib.unified_diff and assert result is ''. Rename test_download_images() to test_z_download_images() to run after test_write_index_file()