def test_inject_timing(): assert d.inject_timing(m("4100" + "0000")) == -210 * Unit.degrees assert float_equals(d.inject_timing(m("4100" + "FFFF")), 302 * Unit.degrees)
def test_inject_timing(): assert d.inject_timing("0000") == (-210, Unit.DEGREES) assert float_equals(d.inject_timing("FFFF"), (302, Unit.DEGREES))
def test_inject_timing(): assert d.inject_timing(m("0000")) == (-210, Unit.DEGREES) assert float_equals(d.inject_timing(m("FFFF")), (302, Unit.DEGREES))