test for new pack functionality

This commit is contained in:
Martin Diehl 2019-11-25 09:28:59 +01:00
parent 969fa9bbc7
commit 6d25506204
1 changed files with 10 additions and 0 deletions

View File

@ -51,6 +51,16 @@ class TestGeom:
new = Geom.from_file(f)
assert geom_equal(new,default)
def test_pack(self,default,tmpdir):
default.to_file(tmpdir.join('default.geom'),pack=True)
new = Geom.from_file(tmpdir.join('default.geom'))
assert geom_equal(new,default)
def test_plain(self,default,tmpdir):
default.to_file(tmpdir.join('default.geom'),pack=False)
new = Geom.from_file(tmpdir.join('default.geom'))
assert geom_equal(new,default)
@pytest.mark.parametrize('directions,reflect',[
(['x'], False),
(['x','y','z'],True),