Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #4
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
Beispiel #5
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())
Beispiel #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))
Beispiel #7
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
Beispiel #8
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())