Ejemplo n.º 1
0
 def test_load_trace(self):
     ed = ExperimentDefinition()
     ed._trace_id = 1
     ar = AnalysisRunnerSingle(ed)
     new_rt = ar.load_trace(self._db)
     self.assertEqual(self._rt._lists_start, new_rt._lists_start)
     self.assertEqual(self._rt._lists_submit, new_rt._lists_submit)
Ejemplo n.º 2
0
 def test_do_full_analysis(self):
     ed = ExperimentDefinition()
     ed._trace_id = 1
     ed._start_date = datetime.datetime(1969, 1, 1)
     ed._workload_duration_s = 365 * 24 * 3600
     ed._preload_time_s = 0
     ar = AnalysisRunnerSingle(ed)
     ar.do_full_analysis(self._db)