blob: 1e28e8f8043e48b3a02238d74dc074d62e87e5f6 [file] [log] [blame]
Neale Ranns0ebe8d72016-12-08 19:48:11 +00001#!/usr/bin/env python
2
3import unittest
4
5from framework import VppTestCase, VppTestRunner
6
Klement Sekera1a419f22016-12-12 02:55:06 +01007
Neale Ranns0ebe8d72016-12-08 19:48:11 +00008class 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 Sekera1a419f22016-12-12 02:55:06 +010025 if error:
26 self.logger.critical(error)
Neale Ranns0ebe8d72016-12-08 19:48:11 +000027 self.assertEqual(error.find("Failed"), -1)
28
29if __name__ == '__main__':
30 unittest.main(testRunner=VppTestRunner)