1from yt.frontends.gdf.api import GDFDataset 2from yt.testing import assert_equal, requires_file, units_override_check 3from yt.utilities.answer_testing.framework import ( 4 data_dir_load, 5 requires_ds, 6 small_patch_amr, 7) 8 9_fields = [("gas", "density"), ("gas", "velocity_x")] 10 11sedov = "sedov/sedov_tst_0004.h5" 12 13 14@requires_ds(sedov) 15def test_sedov_tunnel(): 16 ds = data_dir_load(sedov) 17 assert_equal(str(ds), "sedov_tst_0004") 18 for test in small_patch_amr(ds, _fields): 19 test_sedov_tunnel.__name__ = test.description 20 yield test 21 22 23@requires_file(sedov) 24def test_GDFDataset(): 25 assert isinstance(data_dir_load(sedov), GDFDataset) 26 27 28@requires_file(sedov) 29def test_units_override(): 30 units_override_check(sedov) 31