def _download_images(self, t_minx, t_miny, t_maxx, t_maxy): url_builder = UrlBuilder(self._zoom_level) urls = url_builder.get_urls_by_tiles(t_minx, t_miny, t_maxx, t_maxy) loader = MultiLoader(urls) loader.download() return loader.results
def test_multi_loader(urls): multi_loader = MultiLoader(urls=urls) multi_loader.download() assert 2 == len(multi_loader.results)