def testGood(self):
     self.log.debug("Acquiring leases")
     self.mgr.acquireLeases(self.mycfg["Leases"])
     self.mgr.releaseLeases(getResources(self.mycfg["Leases"]))
 def testUnacquired(self):
     resources = getResources(self.mycfg["Leases"])
     self.assertRaises(Exception, self.mgr.releaseLeases, resources + ["Sense-Sphere"])
     self.mgr.releaseLeases(resources)
 def acquireInitialLeases(self):
     self.dummy = Dummy(DEFAULT_NAME, 1, self.mycfg["Leases"])
     self.mgr.releaseLeases(getResources(self.mycfg["Leases"]))
 def testGood(self):
     self.mgr.releaseLeases(getResources(self.mycfg["Leases"]))