def testFn_ParseCores(self): """Test the wdl built-in functional equivalent of 'parse_cores()', which parses a specified disk input to an int output. The input can be a string or an int.""" assert parse_cores(1) == 1 assert parse_cores('1') == 1
def __init__(self, i=None, *args, **kwargs): super(hostTaskCls, self).__init__(*args, **kwargs) cores = parse_cores(1) Job.__init__(self, cores=cores) self.id_i = i