本文整理汇总了Python中wifi.scan.Cell.ssid方法的典型用法代码示例。如果您正苦于以下问题:Python Cell.ssid方法的具体用法?Python Cell.ssid怎么用?Python Cell.ssid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wifi.scan.Cell
的用法示例。
在下文中一共展示了Cell.ssid方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_unencrypted
# 需要导入模块: from wifi.scan import Cell [as 别名]
# 或者: from wifi.scan.Cell import ssid [as 别名]
def test_unencrypted(self):
cell = Cell()
cell.ssid = 'SSID'
cell.encrypted = False
scheme = Scheme.for_cell('wlan0', 'test', cell)
self.assertEqual(scheme.options, {
'wireless-essid': 'SSID',
'wireless-channel': 'auto',
})
示例2: test_wep
# 需要导入模块: from wifi.scan import Cell [as 别名]
# 或者: from wifi.scan.Cell import ssid [as 别名]
def test_wep(self):
cell = Cell()
cell.ssid = 'SSID'
cell.encrypted = True
cell.encryption_type = 'wep'
scheme = Scheme.for_cell('wlan0', 'test', cell, 'passkey')
self.assertEqual(scheme.options, {
'wireless-essid': 'SSID',
'wireless-key': 'passkey',
})
示例3: test_wpa
# 需要导入模块: from wifi.scan import Cell [as 别名]
# 或者: from wifi.scan.Cell import ssid [as 别名]
def test_wpa(self):
cell = Cell()
cell.ssid = 'SSID'
cell.encrypted = True
cell.encryption_type = 'wpa'
scheme = Scheme.for_cell('wlan0', 'test', cell, 'passkey')
self.assertEqual(scheme.options, {
'wpa-ssid': 'SSID',
'wpa-psk': 'ea1548d4e8850c8d94c5ef9ed6fe483981b64c1436952cb1bf80c08a68cdc763',
'wireless-channel': 'auto',
})