OpenMC/tests/regression_tests/sourcepoint_latest/test.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
526 B
Python
Raw Permalink Normal View History

2015-09-14 21:42:25 -04:00
import os
import sys
from tests.testing_harness import TestHarness
2014-01-06 09:57:45 -05:00
class SourcepointTestHarness(TestHarness):
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.*.h5'))
assert len(source) == 1, 'Either multiple or no source files ' \
'exist.'
2014-01-06 09:57:45 -05:00
2014-03-11 18:59:37 -04:00
def test_sourcepoint_latest():
harness = TestHarness('statepoint.10.h5')
harness.main()