Tests: use self.assertNotIn().
[vpp.git] / test / test_ip_mcast.py
index cca4f80..41c6f3b 100644 (file)
@@ -34,7 +34,7 @@ class TestMFIB(VppTestCase):
 
         if error:
             self.logger.critical(error)
-        self.assertEqual(error.find("Failed"), -1)
+        self.assertNotIn("Failed", error)
 
 
 class TestIPMcast(VppTestCase):