| from asfframework import VppTestCase, VppTestRunner |
| from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath |
| class TestString(VppTestCase): |
| super(TestString, cls).setUpClass() |
| super(TestString, cls).tearDownClass() |
| super(TestString, self).setUp() |
| super(TestString, self).tearDown() |
| def test_string_unittest(self): |
| error = self.vapi.cli("test string " + name) |
| if error.find("failed") != -1: |
| self.logger.critical("FAILURE in the " + name + " test") |
| self.assertNotIn("failed", error) |
| if __name__ == "__main__": |
| unittest.main(testRunner=VppTestRunner) |