Skip to content

Commit 3a09c5c

Browse files
committed
[wpasupplicant] split test in station mode and access point mode
1 parent 4c66166 commit 3a09c5c

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

tests/airos/test_wpasupplicant.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
from .dummy import WpasupplicantAirOS, ConverterTest
66

77

8-
class TestWpasupplicantConverter(ConverterTest):
9-
8+
class TestWpasupplicantStation(ConverterTest):
9+
"""
10+
Test the wpasupplicant converter for a
11+
device in ``station`` mode
12+
"""
1013
backend = WpasupplicantAirOS
1114

12-
maxDiff = 2000
13-
1415
def test_invalid_encryption(self):
1516

1617
o = self.backend({
@@ -79,8 +80,7 @@ def test_no_encryption(self):
7980
}
8081
]
8182

82-
for (a, b) in zip(o.intermediate_data['wpasupplicant'], expected):
83-
self.assertEqual(a, b)
83+
self.assertEqualConfig(o.intermediate_data['wpasupplicant'], expected)
8484

8585
def test_wpa2_personal(self):
8686

@@ -132,8 +132,7 @@ def test_wpa2_personal(self):
132132
}
133133
]
134134

135-
for (a, b) in zip(o.intermediate_data['wpasupplicant'], expected):
136-
self.assertEqual(a, b)
135+
self.assertEqualConfig(o.intermediate_data['wpasupplicant'], expected)
137136

138137
@skip("target wpa2_enterprise later")
139138
def test_wpa2_enterprise(self):
@@ -190,5 +189,4 @@ def test_wpa2_enterprise(self):
190189
}
191190
]
192191

193-
for (a, b) in zip(o.intermediate_data['wpasupplicant'], expected):
194-
self.assertEqual(a, b)
192+
self.assertEqualConfig(o.intermediate_data['wpasupplicant'], expected)

0 commit comments

Comments
 (0)