def test_empty(): """Empty object should give empty strings (and logged errors)""" wog = WaterOilGas() assert wog.SWOF() == "" assert wog.SGOF() == "" assert wog.SOF3() == "" assert wog.SLGOF() == "" assert wog.SWFN() == "" assert wog.SGFN() == ""
def test_wateroilgas_simple(): """Test that default curves will give valid include strings""" wog = WaterOilGas() # Add default curves: wog.wateroil.add_corey_water() wog.wateroil.add_corey_oil() wog.gasoil.add_corey_gas() wog.gasoil.add_corey_oil() with pytest.raises(AssertionError): # Testing test code: sat_table_str_ok("") sat_table_str_ok(wog.SWOF()) sat_table_str_ok(wog.SGOF()) sat_table_str_ok(wog.SLGOF()) sat_table_str_ok(wog.SOF3()) sat_table_str_ok(wog.SGFN()) sat_table_str_ok(wog.SWFN())