def setUp(self): super(MultiSourceSimpleFSResolverTest, self).setUp() img_dir = os.path.join(self.TEST_DIR, 'img') img_dir2 = os.path.join(self.TEST_DIR, 'img2') multiple_config = {'src_img_roots': [img_dir2, img_dir]} self.resolver = resolver.SimpleFSResolver(multiple_config)
def setUp(self): super(SimpleFSResolverTest, self).setUp() self.img_dir = os.path.join(self.TEST_DIR, 'img') single_config = { 'src_img_root': self.img_dir, } self.identifier = '01/02/0001.jp2' self.not_identifier = 'DOES_NOT_EXIST.jp2' self.expected_filepath = os.path.join(self.img_dir, self.identifier) self.expected_format = 'jp2' self.resolver = resolver.SimpleFSResolver(single_config)