Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def test_cache_path_file(self):
     result = uri_resolver.cache_path('/cache-dir', '/var/test/file.zip')
     self.assertEqual('/cache-dir/file.zip', result)
Exemplo n.º 4
0
 def test_cache_path_file(self):
     result = uri_resolver.cache_path('/cache-dir', '/var/test/file.zip')
     self.assertEqual('/cache-dir/file.zip', result)