def testGetOutFolderPathFromConf(self): from test_model import createPodObj pod = createPodObj('testPod') path = getOutFolderPath({'outputDir': '/var/lib/openclos'}, pod) self.assertEquals('/var/lib/openclos/' + pod.id + '-' + pod.name, path)
def testGetOutFolderPathFromConf(self): from test_model import createPodObj pod = createPodObj('testPod') path = getOutFolderPath({'outputDir': '/var/lib/openclos'}, pod) self.assertEquals('/var/lib/openclos/'+pod.id+'-'+pod.name, path)
def testGetOutFolderPath(self): from test_model import createPodObj pod = createPodObj('testPod') path = getOutFolderPath({}, pod) self.assertEquals('out/' + pod.id + '-' + pod.name, path)
def testGetOutFolderPath(self): from test_model import createPodObj pod = createPodObj('testPod') path = getOutFolderPath({}, pod) self.assertEquals('out/'+pod.id+'-'+pod.name, path)