def test_fuel_status(): assert d.fuel_status( m("0100")) == ("Open loop due to insufficient engine temperature", Unit.NONE) assert d.fuel_status(m("0800")) == ("Open loop due to system failure", Unit.NONE) assert d.fuel_status(m("0300")) == (None, Unit.NONE)
def test_fuel_status(): assert d.fuel_status(m("4100" + "0100")) == ("Open loop due to insufficient engine temperature", "") assert d.fuel_status(m("4100" + "0800")) == ("Open loop due to system failure", "") assert d.fuel_status(m("4100" + "0808")) == ("Open loop due to system failure", "Open loop due to system failure") assert d.fuel_status(m("4100" + "0008")) == ("", "Open loop due to system failure") assert d.fuel_status(m("4100" + "0000")) is None assert d.fuel_status(m("4100" + "0300")) is None assert d.fuel_status(m("4100" + "0303")) is None
def test_fuel_status(): assert d.fuel_status( m("4100" + "0100")) == ("Open loop due to insufficient engine temperature", "") assert d.fuel_status(m("4100" + "0800")) == ("Open loop due to system failure", "") assert d.fuel_status(m("4100" + "0808")) == ("Open loop due to system failure", "Open loop due to system failure") assert d.fuel_status(m("4100" + "0008")) == ("", "Open loop due to system failure") assert d.fuel_status(m("4100" + "0000")) is None assert d.fuel_status(m("4100" + "0300")) is None assert d.fuel_status(m("4100" + "0303")) is None
def test_fuel_status(): assert d.fuel_status("0100") == ("Open loop due to insufficient engine temperature", Unit.NONE) assert d.fuel_status("0800") == ("Open loop due to system failure", Unit.NONE) assert d.fuel_status("0300") == (None, Unit.NONE)