Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | import unittest |
| 4 | |
| 5 | from framework import VppTestCase, VppTestRunner |
| 6 | |
Klement Sekera | 1a419f2 | 2016-12-12 02:55:06 +0100 | [diff] [blame] | 7 | |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 8 | class TestFIB(VppTestCase): |
| 9 | """ FIB Test Case """ |
| 10 | |
Paul Vinciguerra | 7f9b7f9 | 2019-03-12 19:23:27 -0700 | [diff] [blame^] | 11 | @classmethod |
| 12 | def setUpClass(cls): |
| 13 | super(TestFIB, cls).setUpClass() |
| 14 | |
| 15 | @classmethod |
| 16 | def tearDownClass(cls): |
| 17 | super(TestFIB, cls).tearDownClass() |
| 18 | |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 19 | def test_fib(self): |
| 20 | """ FIB Unit Tests """ |
| 21 | error = self.vapi.cli("test fib") |
| 22 | |
Klement Sekera | 1a419f2 | 2016-12-12 02:55:06 +0100 | [diff] [blame] | 23 | if error: |
| 24 | self.logger.critical(error) |
Paul Vinciguerra | 9a6dafd | 2019-03-06 15:11:28 -0800 | [diff] [blame] | 25 | self.assertNotIn("Failed", error) |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 26 | |
| 27 | if __name__ == '__main__': |
| 28 | unittest.main(testRunner=VppTestRunner) |