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 | |
| 7 | class TestFIB(VppTestCase): |
| 8 | """ FIB Test Case """ |
| 9 | |
| 10 | @classmethod |
| 11 | def setUpClass(cls): |
| 12 | super(TestFIB, cls).setUpClass() |
| 13 | |
| 14 | def setUp(self): |
| 15 | super(TestFIB, self).setUp() |
| 16 | |
| 17 | def tearDown(self): |
| 18 | super(TestFIB, self).tearDown() |
| 19 | |
| 20 | def test_fib(self): |
| 21 | """ FIB Unit Tests """ |
| 22 | error = self.vapi.cli("test fib") |
| 23 | |
| 24 | self.logger.critical(error) |
| 25 | self.assertEqual(error.find("Failed"), -1) |
| 26 | |
| 27 | if __name__ == '__main__': |
| 28 | unittest.main(testRunner=VppTestRunner) |