Exemplo n.º 1
0
 def _set_nec_ini(self):
     self.nec_ini_file = self.useFixture(fixtures.TempDir()).join("nec.ini")
     with open(self.nec_ini_file, 'w') as f:
         f.write(self._nec_ini)
     if 'config_files' in test_config.keys():
         for c in test_config['config_files']:
             if c.rfind("/nec.ini") > -1:
                 test_config['config_files'].remove(c)
         test_config['config_files'].append(self.nec_ini_file)
     else:
         test_config['config_files'] = [self.nec_ini_file]
Exemplo n.º 2
0
 def _set_nec_ini(self):
     self.nec_ini_file = self.useFixture(fixtures.TempDir()).join("nec.ini")
     with open(self.nec_ini_file, 'w') as f:
         f.write(self._nec_ini)
     if 'config_files' in test_config.keys():
         for c in test_config['config_files']:
             if c.rfind("/nec.ini") > -1:
                 test_config['config_files'].remove(c)
         test_config['config_files'].append(self.nec_ini_file)
     else:
         test_config['config_files'] = [self.nec_ini_file]