Skip to content

Commit

Permalink
Add tests HOORAY
Browse files Browse the repository at this point in the history
--HG--
branch : yt
  • Loading branch information
bitjockey42 committed Aug 28, 2015
1 parent 9164faa commit 1a759ee
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions yt/frontends/exodus_ii/tests/test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@
from yt.config import ytcfg
from yt.convenience import load

_fields = ("temperature", "density", "velocity_magnitude",
"velocity_divergence")
_fields = ("convected", "diffused")

print "Is this thing on"

out00 = "ExodusII/out.e"
@requires_ds(out00)
def test_printout():
print "Is it me you're looking for?"
ds = data_dir_load(out00)
out = "ExodusII/out.e"
@requires_ds(out)
def test_out():
ds = data_dir_load(out)
yield assert_equal, str(ds), "out.e"
yield assert_equal, ds.dimensionality, 3
yield assert_equal, ds.unique_identifier, 'Wed Apr 15 07:52:29 2015'
yield assert_equal, ds.current_time, 0.0

out_s002 = "ExodusII/out.e-s002"
@requires_ds(out_s002)
def test_out002():
ds = data_dir_load(out_s002)
yield assert_equal, str(ds), "out.e-s002"
yield assert_equal, ds.dimensionality, 3
yield assert_equal, ds.current_time, 0.0



0 comments on commit 1a759ee

Please sign in to comment.