diff --git a/autotests/testAP-no-support/hw.conf b/autotests/testAP-no-support/hw.conf new file mode 100644 index 00000000..9df3b349 --- /dev/null +++ b/autotests/testAP-no-support/hw.conf @@ -0,0 +1,6 @@ +[SETUP] +num_radios=1 +radio_confs=rad0 + +[rad0] +iftype_disable=ap diff --git a/autotests/testAP-no-support/test.py b/autotests/testAP-no-support/test.py new file mode 100644 index 00000000..1bbc0bde --- /dev/null +++ b/autotests/testAP-no-support/test.py @@ -0,0 +1,28 @@ +#! /usr/bin/python3 + +import unittest +import sys + +sys.path.append('../util') +import iwd +from iwd import IWD + +class Test(unittest.TestCase): + def test_connection_success(self): + wd = IWD() + + dev = wd.list_devices(1)[0] + + with self.assertRaises(iwd.NotSupportedEx): + dev.start_ap('TestAP2', 'Password2') + + @classmethod + def setUpClass(cls): + pass + + @classmethod + def tearDownClass(cls): + IWD.clear_storage() + +if __name__ == '__main__': + unittest.main(exit=True)