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 | |
| 11 | @classmethod |
| 12 | def setUpClass(cls): |
| 13 | super(TestFIB, cls).setUpClass() |
| 14 | |
| 15 | def setUp(self): |
| 16 | super(TestFIB, self).setUp() |
| 17 | |
| 18 | def tearDown(self): |
| 19 | super(TestFIB, self).tearDown() |
| 20 | |
| 21 | def test_fib(self): |
| 22 | """ FIB Unit Tests """ |
| 23 | error = self.vapi.cli("test fib") |
| 24 | |
Klement Sekera | 1a419f2 | 2016-12-12 02:55:06 +0100 | [diff] [blame] | 25 | if error: |
| 26 | self.logger.critical(error) |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 27 | self.assertEqual(error.find("Failed"), -1) |
| 28 | |
| 29 | if __name__ == '__main__': |
| 30 | unittest.main(testRunner=VppTestRunner) |