Exemplo n.º 1
0
 def test_init_result_dict(self):
     self.p_base = AnalysisBasePlugin(self, self.config)
     resultdict = self.p_base.init_dict()
     self.assertIn('analysis_date', resultdict, 'analysis date missing')
     self.assertEqual(resultdict['plugin_version'], 'not set',
                      'plugin version field not correct')
     self.p_base.shutdown()
Exemplo n.º 2
0
 def multithread_config_test(self, multithread_flag, threads_in_config,
                             threads_wanted):
     self.config.set('base', 'threads', threads_in_config)
     self.p_base = AnalysisBasePlugin(self,
                                      self.config,
                                      no_multithread=multithread_flag)
     self.assertEqual(self.p_base.config[self.p_base.NAME]['threads'],
                      threads_wanted, 'number of threads not correct')
     self.p_base.shutdown()
Exemplo n.º 3
0
 def setUp(self):
     config = self.set_up_base_config()
     self.base_plugin = AnalysisBasePlugin(self, config)
Exemplo n.º 4
0
 def setUp(self):
     self.base_plugin = AnalysisBasePlugin(self,
                                           config=self.set_up_base_config(),
                                           offline_testing=True)