added new results test for basic test

This commit is contained in:
Bryan Herman 2013-08-12 13:17:03 -04:00
parent e178c7b16d
commit 5d00dfa638
4 changed files with 60 additions and 0 deletions

View file

@ -2,6 +2,7 @@
import os
from subprocess import Popen, STDOUT, PIPE
import filecmp
pwd = os.path.dirname(__file__)
@ -18,6 +19,10 @@ def test_run():
def test_created_statepoint():
assert os.path.exists(pwd + '/statepoint.10.binary')
def test_results():
os.system('python results.py')
assert filecmp.cmp('results_test.dat', 'results_true.dat')
def teardown():
output = [pwd + '/statepoint.10.binary']
for f in output: