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:35:40 +0100
commit7375d9f06e5c8bc7e023c9ca3e40b2d83edbaaae (patch)
tree48927de761658137a1303d311f6ced96c19ef04d /smoketest/scripts/cli/test_interfaces_loopback.py
parentf228a1ae057ad61bcdd04c02eae794ae595a2aba (diff)
downloadvyos-1x-7375d9f06e5c8bc7e023c9ca3e40b2d83edbaaae.tar.gz
vyos-1x-7375d9f06e5c8bc7e023c9ca3e40b2d83edbaaae.zip
smoketest: interfaces: use provided unittest framework assert methods
(cherry picked from commit b2b5ea81243f672d3cc3c4082374551f38fd4dde)
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)