示例#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)
示例#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)
示例#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)
示例#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)