Adding Python init file.

This commit is contained in:
shriwise 2018-09-08 11:37:42 -05:00 committed by pshriwise
parent 2b2bc9a468
commit 326eddc469
2 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1,9 @@
import numpy as np
import pytest
def assert_unbounded(obj):
"""Assert that a region/cell is unbounded."""
ll, ur = obj.bounding_box
assert ll == pytest.approx((-np.inf, -np.inf, -np.inf))
assert ur == pytest.approx((np.inf, np.inf, np.inf))

View file

@ -1,8 +1,6 @@
import pytest
from subprocess import call
def test_cad():
assert not call(["openmc"])
assert not call(['openmc'])