| from asfframework import VppAsfTestCase, VppTestRunner |
| class TestSparseVec(VppAsfTestCase): |
| """SparseVec Test Cases""" |
| super(TestSparseVec, cls).setUpClass() |
| super(TestSparseVec, cls).tearDownClass() |
| super(TestSparseVec, self).setUp() |
| super(TestSparseVec, self).tearDown() |
| def test_string_unittest(self): |
| """SparseVec unit tests""" |
| error = self.vapi.cli("test sparse_vec") |
| if error.find("failed") != -1: |
| self.logger.critical("FAILURE in the sparse_vec test") |
| self.assertNotIn("failed", error) |
| if __name__ == "__main__": |
| unittest.main(testRunner=VppTestRunner) |