Ejemplo n.º 1
0
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"
Ejemplo n.º 2
0
def test_pid():
	assert d.pid("00000000") == ("00000000000000000000000000000000", Unit.NONE)
	assert d.pid("F00AA00F") == ("11110000000010101010000000001111", Unit.NONE)
	assert d.pid("11")       == ("00010001", Unit.NONE)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
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"