summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_loopback.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-16 20:24:53 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-16 21:34:30 +0100
commitb2b5ea81243f672d3cc3c4082374551f38fd4dde (patch)
treeac8538c79480f6f6236af30c14b8d935ae376979 /smoketest/scripts/cli/test_interfaces_loopback.py
parentb373d3841608838fd28f98691cb14e42c128c216 (diff)
downloadvyos-1x-b2b5ea81243f672d3cc3c4082374551f38fd4dde.tar.gz
vyos-1x-b2b5ea81243f672d3cc3c4082374551f38fd4dde.zip
smoketest: interfaces: use provided unittest framework assert methods
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_loopback.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_loopback.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_loopback.py b/smoketest/scripts/cli/test_interfaces_loopback.py
index e3538fc59..36000c3ff 100755
--- a/smoketest/scripts/cli/test_interfaces_loopback.py
+++ b/smoketest/scripts/cli/test_interfaces_loopback.py
@@ -36,7 +36,7 @@ class LoopbackInterfaceTest(BasicInterfaceTest.BaseTest):
# loopback interface must persist!
for intf in self._interfaces:
- self.assertTrue(intf in interfaces())
+ self.assertIn(intf, interfaces())
def test_add_single_ip_address(self):
super().test_add_single_ip_address()
@@ -48,5 +48,8 @@ class LoopbackInterfaceTest(BasicInterfaceTest.BaseTest):
for addr in self._loopback_addresses:
self.assertTrue(is_intf_addr_assigned('lo', addr))
+ def test_interface_disable(self):
+ self.skipTest('not supported')
+
if __name__ == '__main__':
unittest.main(verbosity=2)