예제 #1
0
 def _get_saved_searches(self):
     filename = self.PATTERNS_FILE + ".saved"
     self._url_pats = StandaloneEditor.load_values(filename)
     # Failing all else...
     if not len(self._url_pats):
         print_d("No saved searches found in %s. Using defaults." %
                 filename)
         self._url_pats = self.DEFAULT_URL_PATS
예제 #2
0
 def _get_saved_searches(self):
     filename = self.PATTERNS_FILE + ".saved"
     self._url_pats = StandaloneEditor.load_values(filename)
     # Failing all else...
     if not len(self._url_pats):
         print_d("No saved searches found in %s. Using defaults." %
                 filename)
         self._url_pats = self.DEFAULT_URL_PATS
예제 #3
0
 def test_load_values(self):
     values = StandaloneEditor.load_values(self.fname + ".saved")
     self.failUnlessEqual(self.TEST_KV_DATA, values)
예제 #4
0
 def test_load_values(self):
     values = StandaloneEditor.load_values(self.fname + ".saved")
     self.failUnlessEqual(self.TEST_KV_DATA, values)