def getCEImpl(cp): ceImpl = 'Globus' ceImplVersion = cp_get(cp, ce, 'globus_version', '4.0.6') if cp_getBoolean(cp, 'cream', 'enabled', False): ceImpl = 'CREAM' ceImplVersion = getOSGVersion(cp) return (ceImpl, ceImplVersion)
def test_osg_version(self): """ Test the osg-version function and test for the contents in the software. """ my_version = 'OSG-magic-version' cp = config("test_configs/red.conf") version = getOSGVersion(cp) print version self.failUnless(version == my_version, msg="Computed OSG version does"\ " not match the test case's OSG version.") found_osg = False locations = getApplications(cp) for loc in locations: if loc['locationId'] == my_version: self.failUnless(loc['locationName'] == my_version) self.failUnless(loc['version'] == my_version) found_osg = True if found_osg == False: self.fail(msg="OSG version not in software list!")