def setUp(self): self.graphs = { 'performance_versus_cores': Graph(fixtures.GraphConfig('performance_versus_cores')) } self.r = Report(fixtures.ReportConfig('planck_performance'), self.graphs) self.results = ResultsCollection( fixtures.Results('cylinders').path, fixtures.ResultsConfig('example'))
def setUp(self): self.config = { 'graphs': { 'performance_versus_cores': fixtures.GraphConfig('performance_versus_cores') }, 'reports': { 'planck_performance': fixtures.ReportConfig('planck_performance') }, 'results_path': fixtures.Results('cylinders').path, 'reports_path': fixtures.ReportOutput('reports').path, 'results': fixtures.ResultsConfig('example') } self.a = Analysis(self.config)
def setUp(self): self.rc=ResultsCollection(fixtures.Results('cylinders').path,fixtures.ResultsConfig('example'))
# # Copyright (C) University College London, 2007-2012, all rights reserved. # # This file is part of HemeLB and is CONFIDENTIAL. You may not work # with, install, use, duplicate, modify, redistribute or share this # file, or any part thereof, other than as allowed by any agreement # specifically made by you with University College London. # import os import unittest import fixtures import result Result = result.result_model(fixtures.ResultsConfig('extraction')) class TestExtraction(unittest.TestCase): def setUp(self): self.rc = Result(fixtures.Results('extractions').result_path(0)) def test_construct(self): self.assertEqual( fixtures.Results('extractions').result_path(0), self.rc.path) def test_name_property(self): self.assertEqual('cylRe1VxSz8.0e-05_80b9322046ce_localhost_4_10_10', self.rc.name) def test_field_count(self): self.assertEqual(1, self.rc.axial_field_count)
def setUp(self): self.buff=StringIO.StringIO() self.rc=Curation(fixtures.Results('cylinders').path,fixtures.ResultsConfig('example'),['myprog','name'],self.buff)
def setUp(self): self.g = Graph(fixtures.GraphConfig('performance_versus_cores')) self.g2 = self.g.specialise({'select': {'machine': 'planck'}}) self.results = ResultsCollection( fixtures.Results('cylinders').path, fixtures.ResultsConfig('example'))
# # Copyright (C) University College London, 2007-2012, all rights reserved. # # This file is part of HemeLB and is CONFIDENTIAL. You may not work # with, install, use, duplicate, modify, redistribute or share this # file, or any part thereof, other than as allowed by any agreement # specifically made by you with University College London. # import os import unittest import fixtures import result Result = result.result_model(fixtures.ResultsConfig('example')) class TestResult(unittest.TestCase): def setUp(self): self.rc = Result(fixtures.Results('cylinders').result_path(0)) def test_construct(self): self.assertEqual( fixtures.Results('cylinders').result_path(0), self.rc.path) def test_name_property(self): self.assertEqual('planck', self.rc.machine) def test_text_property(self): self.assertEqual(1, self.rc.cores)
def setUp(self): self.rc = results_collection.ResultsCollection( fixtures.Results('cylinders').path, fixtures.ResultsConfig('optional'))