diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-16 20:24:53 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-16 21:34:30 +0100 |
commit | b2b5ea81243f672d3cc3c4082374551f38fd4dde (patch) | |
tree | ac8538c79480f6f6236af30c14b8d935ae376979 /smoketest/scripts/cli/test_interfaces_bridge.py | |
parent | b373d3841608838fd28f98691cb14e42c128c216 (diff) | |
download | vyos-1x-b2b5ea81243f672d3cc3c4082374551f38fd4dde.tar.gz vyos-1x-b2b5ea81243f672d3cc3c4082374551f38fd4dde.zip |
smoketest: interfaces: use provided unittest framework assert methods
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_bridge.py')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_bridge.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_bridge.py b/smoketest/scripts/cli/test_interfaces_bridge.py index 3367cca5c..30364ca37 100755 --- a/smoketest/scripts/cli/test_interfaces_bridge.py +++ b/smoketest/scripts/cli/test_interfaces_bridge.py @@ -52,11 +52,11 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest): self._interfaces = list(self._options) super().setUp() - + def tearDown(self): for intf in self._interfaces: self.session.delete(self._base_path + [intf]) - + super().tearDown() def test_add_remove_bridge_member(self): @@ -92,15 +92,15 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest): self.session.delete(self._base_path + [interface, 'member']) self.session.commit() - - def test_8021q_vlan_interfaces(self): + + def test_vif_8021q_interfaces(self): for interface in self._interfaces: base = self._base_path + [interface] self.session.set(base + ['enable-vlan']) - super().test_8021q_vlan_interfaces() + super().test_vif_8021q_interfaces() def test_bridge_vlan_filter(self): - + vif_vlan = 2 # Add member interface to bridge and set VLAN filter for interface in self._interfaces: @@ -175,7 +175,7 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest): for member in self._members: self.assertIn(member, bridge_members) - + # delete all members for interface in self._interfaces: self.session.delete(self._base_path + [interface, 'member']) |