Commit 457b69ce authored by Shane Snyder's avatar Shane Snyder
Browse files

Merge branch 'treddy/darshan-treddy_test_to_json' into HEAD

parents 18d1054a 550f3a65
......@@ -109,3 +109,27 @@ def test_report_invalid_file(invalid_filepath):
with pytest.raises(RuntimeError, match='Failed to open file'):
def test_json_fidelity():
# regression test for provision of appropriate
# data by to_json() method of DarshanReport class
report = darshan.DarshanReport("tests/input/sample.darshan")
actual_json = report.to_json()
for expected_key in ["version",
assert expected_key in actual_json
for expected_value in ['69615',
assert expected_value in actual_json
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment