Beispiel #1
0
 def testPackUnpack(self):
     s = win32gui_struct.PackDEV_BROADCAST_VOLUME(123, 456)
     c = array.array("b", s)
     got = win32gui_struct.UnpackDEV_BROADCAST(c.buffer_info()[0])
     self.failUnlessEqual(got.unitmask, 123)
     self.failUnlessEqual(got.flags, 456)
Beispiel #2
0
 def testPackUnpack(self):
     s = win32gui_struct.PackDEV_BROADCAST_VOLUME(123, 456)
     c = array.array("b", s)
     got = win32gui_struct.UnpackDEV_BROADCAST(c.buffer_info()[0])
     assert got.unitmask == 123
     assert got.flags == 456