def test_max_maf(): assert d.max_maf(m("4100" + "00000000")) == 0 * Unit.grams_per_second assert d.max_maf(m("4100" + "FF000000")) == 2550 * Unit.grams_per_second assert d.max_maf( m("4100" + "00ABCDEF")) == 0 * Unit.grams_per_second # last 3 bytes are unused (should be disregarded)
def test_max_maf(): assert d.max_maf("00000000") == (0, Unit.GPS) assert d.max_maf("FF000000") == (2550, Unit.GPS) assert d.max_maf("00ABCDEF") == (0, Unit.GPS) # last 3 bytes are unused (should be disregarded)
def test_max_maf(): assert d.max_maf(m("00000000")) == (0, Unit.GPS) assert d.max_maf(m("FF000000")) == (2550, Unit.GPS) assert d.max_maf(m("00ABCDEF")) == ( 0, Unit.GPS) # last 3 bytes are unused (should be disregarded)
def test_max_maf(): assert d.max_maf(m("4100" + "00000000")) == 0 * Unit.grams_per_second assert d.max_maf(m("4100" + "FF000000")) == 2550 * Unit.grams_per_second assert d.max_maf( m("4100" + "00ABCDEF") ) == 0 * Unit.grams_per_second # last 3 bytes are unused (should be disregarded)