X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_fib.py;h=6acde0a636365bf2f0049a44fe4cf2c3aa0bfa11;hb=7f9b7f9f492d1748d8ba025b3a713058fdb1943d;hp=6b597465796dfd2267d431f32bfbf0972c2d1ad8;hpb=76f3a2b6d9d6f79d13fc540631d8a3db721e17fb;p=vpp.git diff --git a/test/test_fib.py b/test/test_fib.py index 6b597465796..6acde0a6363 100644 --- a/test/test_fib.py +++ b/test/test_fib.py @@ -8,13 +8,21 @@ from framework import VppTestCase, VppTestRunner class TestFIB(VppTestCase): """ FIB Test Case """ + @classmethod + def setUpClass(cls): + super(TestFIB, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestFIB, cls).tearDownClass() + def test_fib(self): """ FIB Unit Tests """ error = self.vapi.cli("test fib") if error: self.logger.critical(error) - self.assertEqual(error.find("Failed"), -1) + self.assertNotIn("Failed", error) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)