@@ -37,7 +37,7 @@ def test_wpa2_personal(self):
3737 ]
3838 })
3939
40- expected = ''' # config: /etc/hostapd/hostapd.conf
40+ expected = """ # config: /etc/hostapd/hostapd.conf
4141
4242interface=wlan0
4343driver=nl80211
@@ -64,7 +64,7 @@ def test_wpa2_personal(self):
6464sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
6565sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
6666
67- '''
67+ """
6868 self .assertEqual (o .render (), expected )
6969
7070 def test_wpa_personal (self ):
@@ -98,7 +98,7 @@ def test_wpa_personal(self):
9898 ]
9999 })
100100
101- expected = ''' # config: /etc/hostapd/hostapd.conf
101+ expected = """ # config: /etc/hostapd/hostapd.conf
102102
103103interface=wlan0
104104driver=nl80211
@@ -124,7 +124,7 @@ def test_wpa_personal(self):
124124sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
125125sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
126126
127- '''
127+ """
128128 self .assertEqual (o .render (), expected )
129129
130130 def test_wpa2_enterprise_ap (self ):
@@ -158,7 +158,7 @@ def test_wpa2_enterprise_ap(self):
158158 ]
159159 })
160160
161- expected = ''' # config: /etc/hostapd/hostapd.conf
161+ expected = """ # config: /etc/hostapd/hostapd.conf
162162
163163interface=wlan0
164164driver=nl80211
@@ -189,7 +189,7 @@ def test_wpa2_enterprise_ap(self):
189189sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
190190sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
191191
192- '''
192+ """
193193
194194 self .assertEqual (o .render (), expected )
195195
@@ -223,7 +223,7 @@ def test_wep_open(self):
223223 ]
224224 })
225225
226- expected = ''' # config: /etc/hostapd/hostapd.conf
226+ expected = """ # config: /etc/hostapd/hostapd.conf
227227
228228interface=wlan0
229229driver=nl80211
@@ -248,7 +248,7 @@ def test_wep_open(self):
248248sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
249249sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
250250
251- '''
251+ """
252252 self .assertEqual (o .render (), expected )
253253
254254 def test_wep_shared (self ):
@@ -281,7 +281,7 @@ def test_wep_shared(self):
281281 ]
282282 })
283283
284- expected = ''' # config: /etc/hostapd/hostapd.conf
284+ expected = """ # config: /etc/hostapd/hostapd.conf
285285
286286interface=wlan0
287287driver=nl80211
@@ -306,7 +306,7 @@ def test_wep_shared(self):
306306sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
307307sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
308308
309- '''
309+ """
310310 self .assertEqual (o .render (), expected )
311311
312312 def test_encryption_disabled (self ):
@@ -341,7 +341,7 @@ def test_encryption_disabled(self):
341341 ]
342342 })
343343
344- expected = ''' # config: /etc/hostapd/hostapd.conf
344+ expected = """ # config: /etc/hostapd/hostapd.conf
345345
346346interface=wlan0
347347driver=nl80211
@@ -363,7 +363,7 @@ def test_encryption_disabled(self):
363363sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
364364sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
365365
366- '''
366+ """
367367 self .assertEqual (o .render (), expected )
368368
369369 def test_no_encryption (self ):
@@ -393,7 +393,7 @@ def test_no_encryption(self):
393393 ]
394394 })
395395
396- expected = ''' # config: /etc/hostapd/hostapd.conf
396+ expected = """ # config: /etc/hostapd/hostapd.conf
397397
398398interface=wlan0
399399driver=nl80211
@@ -415,7 +415,7 @@ def test_no_encryption(self):
415415sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
416416sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
417417
418- '''
418+ """
419419 self .assertEqual (o .render (), expected )
420420
421421 def test_macaddracl_accept (self ):
@@ -449,7 +449,7 @@ def test_macaddracl_accept(self):
449449 ]
450450 })
451451
452- expected = ''' # config: /etc/hostapd/hostapd.conf
452+ expected = """ # config: /etc/hostapd/hostapd.conf
453453
454454interface=wlan0
455455driver=nl80211
@@ -478,7 +478,7 @@ def test_macaddracl_accept(self):
478478sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
479479sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
480480
481- '''
481+ """
482482 self .assertEqual (o .render (), expected )
483483
484484 def test_macaddracl_deny (self ):
@@ -512,7 +512,7 @@ def test_macaddracl_deny(self):
512512 ]
513513 })
514514
515- expected = ''' # config: /etc/hostapd/hostapd.conf
515+ expected = """ # config: /etc/hostapd/hostapd.conf
516516
517517interface=wlan0
518518driver=nl80211
@@ -541,5 +541,5 @@ def test_macaddracl_deny(self):
541541sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
542542sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
543543
544- '''
544+ """
545545 self .assertEqual (o .render (), expected )
0 commit comments