Ejemplo n.º 1
0
 def test_construct_filenames(self):
     di = DataInterpreter()
     di.name = 'Some Name'
     trials = [DummyTrial('t1', 1), DummyTrial('t2', 2)]
     base_path = 'BASEPATH'
     f1 = 't1__Some_Name'
     f2 = 't2__Some_Name'
     expected = {1:os.path.join(base_path, f1), 
                 2:os.path.join(base_path, f2)}
     self.assertEquals(di.construct_filenames(trials, base_path), expected)