def test_cache_path_url(self): result = uri_resolver.cache_path( '/cache-dir', 'http://some-site.com/path/test/file.zip') self.assertEqual('/cache-dir/file.zip', result)
def test_cache_path_url(self): result = uri_resolver.cache_path('/cache-dir', 'http://some-site.com/path/test/file.zip') self.assertEqual('/cache-dir/file.zip', result)
def test_cache_path_file(self): result = uri_resolver.cache_path('/cache-dir', '/var/test/file.zip') self.assertEqual('/cache-dir/file.zip', result)