X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_fib.py;h=6acde0a636365bf2f0049a44fe4cf2c3aa0bfa11;hb=68b24e2c9;hp=1e28e8f8043e48b3a02238d74dc074d62e87e5f6;hpb=1a419f2b630c648b33c30efef02e182d7b3e3751;p=vpp.git diff --git a/test/test_fib.py b/test/test_fib.py index 1e28e8f8043..6acde0a6363 100644 --- a/test/test_fib.py +++ b/test/test_fib.py @@ -12,11 +12,9 @@ class TestFIB(VppTestCase): def setUpClass(cls): super(TestFIB, cls).setUpClass() - def setUp(self): - super(TestFIB, self).setUp() - - def tearDown(self): - super(TestFIB, self).tearDown() + @classmethod + def tearDownClass(cls): + super(TestFIB, cls).tearDownClass() def test_fib(self): """ FIB Unit Tests """ @@ -24,7 +22,7 @@ class TestFIB(VppTestCase): if error: self.logger.critical(error) - self.assertEqual(error.find("Failed"), -1) + self.assertNotIn("Failed", error) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)