예제 #1
0
파일: resolver_t.py 프로젝트: gpg-dev/loris
 def test_present_ident_is_resolvable(self):
     ident = self.test_png_id
     config = {
         'src_img_roots' : [self.test_img_dir]
     }
     resolver = SimpleFSResolver(config=config)
     assert resolver.is_resolvable(ident=ident)
예제 #2
0
파일: resolver_t.py 프로젝트: gpg-dev/loris
 def test_absent_ident_is_unresolvable(self):
     config = {
         'src_img_roots' : ['/var/loris/img']
     }
     resolver = SimpleFSResolver(config=config)
     assert not resolver.is_resolvable(ident='doesnotexist.jpg')