mock_urlopen.side_effect = [Exception("fake exception")]
expect_ret = (False, "/tmp/test.dat")
ret = fileutil.download_file_from_http(url, local_dir, file_name)
mock_urlopen.side_effect = [Exception("fake exception")]
expect_ret = (False, "/tmp/test.dat")
ret = fileutil.download_file_from_http(url, local_dir, file_name)