def testNetbios(self):
     # taken from the demo code in netbios.py
     ncb = win32wnet.NCB()
     ncb.Command = netbios.NCBENUM
     la_enum = netbios.LANA_ENUM()
     ncb.Buffer = la_enum
     rc = win32wnet.Netbios(ncb)
     self.assertEqual(rc, 0)
     for i in range(la_enum.length):
         ncb.Reset()
         ncb.Command = netbios.NCBRESET
         ncb.Lana_num = netbios.byte_to_int(la_enum.lana[i])
         rc = Netbios(ncb)
         self.assertEqual(rc, 0)
         ncb.Reset()
         ncb.Command = netbios.NCBASTAT
         ncb.Lana_num = byte_to_int(la_enum.lana[i])
         ncb.Callname = str2bytes("*               ")  # ensure bytes on py2x and 3k
         adapter = netbios.ADAPTER_STATUS()
         ncb.Buffer = adapter
         Netbios(ncb)
         # expect 6 bytes in the mac address.
         self.assertTrue(len(adapter.adapter_address), 6)
 def testNCB(self):
     ncb = win32wnet.NCB()
     self._checkItemAttributes(ncb, NCB_attributes)