Пример #1
0
 def testSetAndRemoveBonding(self):
     persistence = Config(self.tempdir)
     persistence.setBonding(BONDING, BONDING_ATTRIBUTES)
     self.assertEqual(persistence.bonds[BONDING], BONDING_ATTRIBUTES)
     persistence.removeBonding(BONDING)
     self.assertTrue(persistence.bonds.get(BONDING) is None)
Пример #2
0
 def testSetAndRemoveBonding(self):
     persistence = Config(self.tempdir)
     persistence.setBonding(BONDING, BONDING_ATTRIBUTES)
     self.assertEqual(persistence.bonds[BONDING], BONDING_ATTRIBUTES)
     persistence.removeBonding(BONDING)
     self.assertTrue(persistence.bonds.get(BONDING) is None)
Пример #3
0
 def testSetAndRemoveBonding(self, netconf_dir):
     persistence = Config(netconf_dir)
     persistence.setBonding(BONDING, BONDING_ATTRIBUTES)
     assert persistence.bonds[BONDING] == BONDING_ATTRIBUTES
     persistence.removeBonding(BONDING)
     assert persistence.bonds.get(BONDING) is None