Skip to content

Commit

Permalink
[airos] added test for ebtables converter
Browse files Browse the repository at this point in the history
  • Loading branch information
edoput committed Jul 21, 2017
1 parent a9b2132 commit bd5d522
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/airos/test_ebtables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from .mock import ConverterTest, EbtablesAirOs


class EbtablesConverter(ConverterTest):
backend = EbtablesAirOs

def test_ebtables(self):
o = self.backend({})
o.to_intermediate()
expected = [
{
'sys.fw.status': 'disabled',
'sys.status': 'enabled',
'status': 'enabled',
},
]
self.assertEqualConfig(o.intermediate_data['ebtables'], expected)

0 comments on commit bd5d522

Please sign in to comment.