def test_pid(): assert d.pid(m("4100" + "00000000")).bits == "00000000000000000000000000000000" assert d.pid(m("4100" + "F00AA00F")).bits == "11110000000010101010000000001111" assert d.pid(m("4100" + "11")).bits == "00010001"
def test_pid(): assert d.pid("00000000") == ("00000000000000000000000000000000", Unit.NONE) assert d.pid("F00AA00F") == ("11110000000010101010000000001111", Unit.NONE) assert d.pid("11") == ("00010001", Unit.NONE)
def test_pid(): assert d.pid(m("00000000")) == ("00000000000000000000000000000000", Unit.NONE) assert d.pid(m("F00AA00F")) == ("11110000000010101010000000001111", Unit.NONE) assert d.pid(m("11")) == ("00010001", Unit.NONE)