Ejemplo n.º 1
0
 def _test_output_created(self):
     """Make sure statepoint files have been created."""
     sps = ('statepoint.02.*', 'statepoint.04.*', 'statepoint.06.*',
            'statepoint.08.*', 'statepoint.10.*')
     for sp in sps:
         self._sp_name = sp
         TestHarness._test_output_created(self)
Ejemplo n.º 2
0
 def _test_output_created(self):
     """Make sure statepoint.* and source* have been created."""
     TestHarness._test_output_created(self)
     source = glob.glob(os.path.join(os.getcwd(), 'source.*'))
     assert len(source) == 1, 'Either multiple or no source files ' \
          'exist.'
     assert source[0].endswith('h5'), \
          'Source file is not a HDF5 file.'
Ejemplo n.º 3
0
    def _test_output_created(self):
        """Make sure output files have been created."""
        # Check for the statepoint.
        TestHarness._test_output_created(self)

        # Check for the summary.
        summary = glob.glob(os.path.join(os.getcwd(), 'summary.*'))
        assert len(summary) == 1, 'Either multiple or no summary file exists.'
        assert summary[0].endswith('h5'),\
            'Summary file is not a HDF5 file.'
Ejemplo n.º 4
0
    def _test_output_created(self):
        """Make sure statepoint.* and track* have been created."""
        TestHarness._test_output_created(self)

        outputs = [glob.glob(''.join((os.getcwd(), '/track_1_1_1.*')))]
        outputs.append(glob.glob(''.join((os.getcwd(), '/track_1_1_2.*'))))
        for files in outputs:
            assert len(files) == 1, 'Multiple or no track files detected.'
            assert files[0].endswith('h5'),\
                'Track files are not HDF5 files'
Ejemplo n.º 5
0
    def _test_output_created(self):
        """Make sure statepoint.* and track* have been created."""
        TestHarness._test_output_created(self)

        outputs = glob.glob('track_1_1_*.h5')
        assert len(outputs) == 2, 'Expected two track files.'