def setUp(self):
     self.__scenarios_dir = '/tmp/scenarios'
     if os.path.exists(self.__scenarios_dir):
         shutil.rmtree(self.__scenarios_dir)
     os.makedirs(self.__scenarios_dir)
     test_helper.setupScenario(test_helper.SCENARIO1, self.__scenarios_dir+'/'+test_helper.SCENARIO1, test_helper.SENARIO_SPEC_1)
     test_helper.setupScenario(test_helper.SCENARIO2, self.__scenarios_dir+'/'+test_helper.SCENARIO2, test_helper.SENARIO_SPEC_1)
     self.scenarios = Scenarios(scenario_directory=self.__scenarios_dir)
Exemple #2
0
    def setUp(self):
        self.__scenarios_dir = '/tmp/scenarios'
        self.__name = test_helper.SCENARIO1
        if os.path.exists(self.__scenarios_dir):
            shutil.rmtree(self.__scenarios_dir)
        os.makedirs(self.__scenarios_dir)
        self.__scenario_data_dir = self.__scenarios_dir+'/'+self.__name
        test_helper.setupScenario(self.__name, self.__scenario_data_dir, test_helper.SENARIO_SPEC_1)

        self.__scenario = Scenario(self.__name, self.__scenario_data_dir)
Exemple #3
0
 def setUp(self):
     self.__scenarios_dir = '/tmp/scenarios'
     if os.path.exists(self.__scenarios_dir):
         shutil.rmtree(self.__scenarios_dir)
     os.makedirs(self.__scenarios_dir)
     test_helper.setupScenario(
         test_helper.SCENARIO1,
         self.__scenarios_dir + '/' + test_helper.SCENARIO1,
         test_helper.SENARIO_SPEC_1)
     test_helper.setupScenario(
         test_helper.SCENARIO2,
         self.__scenarios_dir + '/' + test_helper.SCENARIO2,
         test_helper.SENARIO_SPEC_1)
     self.scenarios = Scenarios(scenario_directory=self.__scenarios_dir)