5 from asfframework import VppAsfTestCase, VppTestRunner
8 class TestSparseVec(VppAsfTestCase):
9 """SparseVec Test Cases"""
13 super(TestSparseVec, cls).setUpClass()
16 def tearDownClass(cls):
17 super(TestSparseVec, cls).tearDownClass()
20 super(TestSparseVec, self).setUp()
23 super(TestSparseVec, self).tearDown()
25 def test_string_unittest(self):
26 """SparseVec unit tests"""
27 error = self.vapi.cli("test sparse_vec")
28 if error.find("failed") != -1:
29 self.logger.critical("FAILURE in the sparse_vec test")
30 self.assertNotIn("failed", error)
33 if __name__ == "__main__":
34 unittest.main(testRunner=VppTestRunner)