|
5 | 5 | from .dummy import WpasupplicantAirOS, ConverterTest |
6 | 6 |
|
7 | 7 |
|
8 | | -class TestWpasupplicantConverter(ConverterTest): |
9 | | - |
| 8 | +class TestWpasupplicantStation(ConverterTest): |
| 9 | + """ |
| 10 | + Test the wpasupplicant converter for a |
| 11 | + device in ``station`` mode |
| 12 | + """ |
10 | 13 | backend = WpasupplicantAirOS |
11 | 14 |
|
12 | | - maxDiff = 2000 |
13 | | - |
14 | 15 | def test_invalid_encryption(self): |
15 | 16 |
|
16 | 17 | o = self.backend({ |
@@ -79,8 +80,7 @@ def test_no_encryption(self): |
79 | 80 | } |
80 | 81 | ] |
81 | 82 |
|
82 | | - for (a, b) in zip(o.intermediate_data['wpasupplicant'], expected): |
83 | | - self.assertEqual(a, b) |
| 83 | + self.assertEqualConfig(o.intermediate_data['wpasupplicant'], expected) |
84 | 84 |
|
85 | 85 | def test_wpa2_personal(self): |
86 | 86 |
|
@@ -132,8 +132,7 @@ def test_wpa2_personal(self): |
132 | 132 | } |
133 | 133 | ] |
134 | 134 |
|
135 | | - for (a, b) in zip(o.intermediate_data['wpasupplicant'], expected): |
136 | | - self.assertEqual(a, b) |
| 135 | + self.assertEqualConfig(o.intermediate_data['wpasupplicant'], expected) |
137 | 136 |
|
138 | 137 | @skip("target wpa2_enterprise later") |
139 | 138 | def test_wpa2_enterprise(self): |
@@ -190,5 +189,4 @@ def test_wpa2_enterprise(self): |
190 | 189 | } |
191 | 190 | ] |
192 | 191 |
|
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