Exemplo n.º 1
0
 def test(self):
     inst = ISD_AS()
     inst._isd = 0xF011
     inst._as = 0xF23344556677
     # Call
     ntools.eq_(inst.pack(), bytes.fromhex("F011F23344556677"))
Exemplo n.º 2
0
 def _check(self, isd, s):
     inst = ISD_AS()
     inst._isd = isd
     # Call
     ntools.eq_(inst.isd_str(), s)
Exemplo n.º 3
0
 def test(self):
     inst = ISD_AS()
     inst._isd = 0x111
     inst._as = 0x22222
     # Call
     ntools.eq_(inst.pack(), bytes.fromhex("11122222"))