예제 #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))
예제 #2
0
파일: tests.py 프로젝트: mlyko/tadek-ui
 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))
예제 #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))
예제 #4
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
예제 #5
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())
예제 #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))
예제 #7
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
예제 #8
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())