Skip to content

Commit 7b4ba06

Browse files
author
Ritwick DSouza
committed
[raspbian] Added test for autostart
1 parent 836d44a commit 7b4ba06

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

tests/raspbian/test_interfaces.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,25 @@ def test_multiple_ip(self):
433433
'''
434434
self.assertEqual(o.render(), expected)
435435

436+
def test_autostart_false(self):
437+
o = Raspbian({
438+
"interfaces": [
439+
{
440+
"name": "eth0",
441+
"type": "ethernet",
442+
"autostart": False
443+
}
444+
]
445+
})
446+
447+
expected = '''# config: /etc/network/interfaces
448+
449+
iface eth0 inet manual
450+
451+
'''
452+
453+
self.assertEqual(o.render(), expected)
454+
436455
def test_mtu(self):
437456
o = Raspbian({
438457
"interfaces": [

0 commit comments

Comments
 (0)