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 ...@@ -7,24 +7,14 @@ import pytest
import darshan.backend.cffi_backend as backend import darshan.backend.cffi_backend as backend
def response():
"""Sample pytest fixture.
See more at:
def test_cannotopen(): def test_cannotopen():
"""Ensure we do not dump core on error.""" """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") 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") rec = backend.log_get_record(log, "MPI-IO")
assert rec['counters'][1] == 2048 assert rec == None
def test_ishouldrun():
assert 1
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