Commit 541f82bb authored by Shane Snyder's avatar Shane Snyder
Browse files

modify test to check correct return values

parent ac36a9d7
......@@ -7,24 +7,14 @@ import pytest
import darshan.backend.cffi_backend as backend
@pytest.fixture
def response():
"""Sample pytest fixture.
See more at: http://doc.pytest.org/en/latest/fixture.html
"""
pass
def test_cannotopen():
"""Ensure we do not dump core on error."""
# assert fake log file name comes back with a NULL file handle
log = backend.log_open("fake/tooth-fairy.darshan")
c_file_handle_repr = log['handle'].__repr__()
assert 'NULL' in c_file_handle_repr
# assert no record is returned using above NULL file handle
rec = backend.log_get_record(log, "MPI-IO")
assert rec['counters'][1] == 2048
def test_ishouldrun():
assert 1
assert rec == None
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