mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 03:32:42 +01:00
21 lines
394 B
Python
21 lines
394 B
Python
#! /usr/bin/python3
|
|
|
|
import unittest
|
|
|
|
from iwd import IWD
|
|
|
|
class Test(unittest.TestCase):
|
|
def test_ap_scan(self):
|
|
wd = IWD(True)
|
|
|
|
dev = wd.list_devices(1)[0]
|
|
|
|
dev.start_ap('TestAP2', 'Password2')
|
|
|
|
dev.scan()
|
|
|
|
networks = dev.get_ordered_networks()
|
|
|
|
self.assertTrue(len(networks) == 1)
|
|
self.assertTrue(networks[0]['Name'] == 'TestAP1')
|