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)
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')