Ejemplo n.º 1
0
 def do_test(paths):
     config.setDataSearchDirs(paths)
     newpaths = config.getDataSearchDirs()
     # Clean up here do that if the assert fails
     # it doesn't bring all the other tests down
     self._clean_up_test_areas()
     self.assertEqual(len(newpaths), 2)
     self.assertTrue('tmp' in newpaths[0])
     self.assertTrue('tmp_2' in newpaths[1])
Ejemplo n.º 2
0
 def do_test(paths):
     config.setDataSearchDirs(paths)
     newpaths = config.getDataSearchDirs()
     # Clean up here do that if the assert fails
     # it doesn't bring all the other tests down
     self._clean_up_test_areas()
     self.assertEqual(len(newpaths), 2)
     self.assertTrue('tmp' in newpaths[0])
     self.assertTrue('tmp_2' in newpaths[1])
Ejemplo n.º 3
0
    def test_setting_paths_via_single_string(self):
        new_path_list = self._setup_test_areas()
        path_str = ';'.join(new_path_list)
        config.setDataSearchDirs(path_str)
        paths = config.getDataSearchDirs()
        # Clean up here do that if the assert fails
        # it doesn't bring all the other tests down
        self._clean_up_test_areas()

        self.assertTrue(len(paths), 2)
        self.assertTrue('tmp' in paths[0])
        self.assertTrue('tmp_2' in paths[1])
        self._clean_up_test_areas()
Ejemplo n.º 4
0
    def test_setting_paths_via_single_string(self):
        new_path_list = self._setup_test_areas()
        path_str = ';'.join(new_path_list)
        config.setDataSearchDirs(path_str)
        paths = config.getDataSearchDirs()
        # Clean up here do that if the assert fails
        # it doesn't bring all the other tests down
        self._clean_up_test_areas()

        self.assertTrue(len(paths), 2)
        self.assertTrue('tmp' in paths[0])
        self.assertTrue('tmp_2' in paths[1])
        self._clean_up_test_areas()