5 from framework import VppTestCase, VppTestRunner
6 from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
9 class TestSparseVec(VppTestCase):
10 """ SparseVec Test Cases """
14 super(TestSparseVec, cls).setUpClass()
17 def tearDownClass(cls):
18 super(TestSparseVec, cls).tearDownClass()
21 super(TestSparseVec, self).setUp()
24 super(TestSparseVec, self).tearDown()
26 def test_string_unittest(self):
27 """ SparseVec unit tests """
28 error = self.vapi.cli("test sparse_vec")
29 if error.find("failed") != -1:
30 self.logger.critical("FAILURE in the sparse_vec test")
31 self.assertNotIn("failed", error)
33 if __name__ == '__main__':
34 unittest.main(testRunner=VppTestRunner)