Example #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)
Example #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)
Example #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)
Example #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)