Esempio n. 1
0
 def saveState(self):
     '''
     Saves paths to configuration.
     '''
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "enabled", location.get(enabled=True))
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "disabled", location.get(enabled=False))
Esempio n. 2
0
 def saveState(self):
     '''
     Saves paths to configuration.
     '''
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "enabled", location.get(enabled=True))
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "disabled", location.get(enabled=False))
Esempio n. 3
0
 def testGetDisabled(self):
     location.add(_LOCATION_DIR, False)
     self.failUnless(_LOCATION_DIR in location.get())
     self.failIf(_LOCATION_DIR in location.get(True))
Esempio n. 4
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
Esempio n. 5
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())
Esempio n. 6
0
 def testGetDisabled(self):
     location.add(_LOCATION_DIR, False)
     self.failUnless(_LOCATION_DIR in location.get())
     self.failIf(_LOCATION_DIR in location.get(True))
Esempio n. 7
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
Esempio n. 8
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())