Example #1
0
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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)