Exemple #1
0
 def test_absent_ident_is_unresolvable(self):
     config = {
         'source_root' : '/var/loris/src',
         'cache_root' : '/var/loris/cache'
     }
     resolver = SourceImageCachingResolver(config=config)
     assert not resolver.is_resolvable(ident='doesnotexist.jp2')
Exemple #2
0
 def test_present_ident_is_resolvable(self):
     ident = self.test_png_id
     config = {
         'source_root' : join(dirname(realpath(__file__)), 'img'),
         'cache_root' : self.app.img_cache.cache_root
     }
     resolver = SourceImageCachingResolver(config=config)
     assert resolver.is_resolvable(ident=ident)