def test_set_field(): zcalc = RspCalc("ZDIPLEN", field="XDIPLEN") assert zcalc.finite_field(0.0005) == "*HAMILTON\n.FIELD\n0.0005\nXDIPLEN"
def test_set_field_none(): zcalc = RspCalc("ZDIPLEN") assert zcalc.finite_field() == "###"