summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-20 21:56:20 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-20 21:56:20 +0200
commit61aed576582cedc38cafa758651f1446d4ba4d34 (patch)
treee2df676cfc8ddf9a9c8cc928adc2851f92262438
parent3f6ae12908f54222f2f79a87bed51f71e2fbac87 (diff)
downloadvyos-1x-61aed576582cedc38cafa758651f1446d4ba4d34.tar.gz
vyos-1x-61aed576582cedc38cafa758651f1446d4ba4d34.zip
smoketest: use assertNotIn() in base interface test
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index 6a5b9c4ee..8a84199d9 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -214,7 +214,7 @@ class BasicInterfaceTest:
self.cli_commit()
for interface in self._interfaces:
- self.assertTrue(AF_INET6 not in ifaddresses(interface))
+ self.assertNotIn(AF_INET6, ifaddresses(interface))
def test_interface_mtu(self):
if not self._test_mtu: