auto-t: rename testHiddenNetwork's test class

This was copy pasted from the autoconnect test, and depending on
how the python module cache is ordered can incorrectly use the
wrong test class. This should nothappen because we insert
the paths to the head of the list but for consistency the class
should be named something that reflects what the test is doing.
This commit is contained in:
James Prestwood 2022-06-22 16:02:18 -07:00 committed by Denis Kenzior
parent 679cea02af
commit 72fac7f1b8
4 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util')
import iwd
import validation
from validation import TestConnectAutoConnect
from validation import TestHiddenNetworks
from iwd import IWD
class TestWpaNetwork(unittest.TestCase):
@ -23,7 +23,7 @@ class TestWpaNetwork(unittest.TestCase):
'''
def test_wpa(self):
tca = TestConnectAutoConnect()
tca = TestHiddenNetworks()
tca.validate('UnExistingNetwork', False, iwd.NotFoundEx)
tca.validate('ssidOverlap', False, iwd.ServiceSetOverlapEx)

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util')
import iwd
import validation
from validation import TestConnectAutoConnect
from validation import TestHiddenNetworks
from iwd import IWD
class TestOpenNetwork(unittest.TestCase):
@ -20,7 +20,7 @@ class TestOpenNetwork(unittest.TestCase):
True True Connection succeeds
'''
def test_open(self):
tca = TestConnectAutoConnect()
tca = TestHiddenNetworks()
tca.validate('ssidHiddenOpen', False)
tca.validate('ssidHiddenOpen', True)

View File

@ -9,7 +9,7 @@ from iwd import IWD
from iwd import PSKAgent
from iwd import NetworkType
class TestConnectAutoConnect(unittest.TestCase):
class TestHiddenNetworks(unittest.TestCase):
def check_connect_hidden_network(self, wd, device, ssid, throws):
if not throws is None:

View File

@ -6,7 +6,7 @@ import sys
sys.path.append('../util')
import iwd
import validation
from validation import TestConnectAutoConnect
from validation import TestHiddenNetworks
from iwd import IWD
class TestWpaNetwork(unittest.TestCase):
@ -21,7 +21,7 @@ class TestWpaNetwork(unittest.TestCase):
'''
def test_wpa(self):
tca = TestConnectAutoConnect()
tca = TestHiddenNetworks()
tca.validate('ssidHiddenWPA', False, None, True)
tca.validate('ssidHiddenWPA', True, None, True)