def get_proctype(spider, suffix=None): # TODO: ok to use XnatUtils method, at least until it is removed from XnatUtils, which should happen return XnatUtils.get_proctype(spider, suffix)
def test_get_proctype(self): proctype, version = XnatUtils.get_proctype(common.spider_tiv_from_gif) self.assertEqual(proctype, 'BrainTivFromGIF_v1') self.assertEqual(version, '1.0.0')