5 from framework import VppTestCase, VppTestRunner
6 from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
9 class TestString(VppTestCase):
10 """String Test Cases"""
14 super(TestString, cls).setUpClass()
17 def tearDownClass(cls):
18 super(TestString, cls).tearDownClass()
21 super(TestString, self).setUp()
24 super(TestString, self).tearDown()
26 def test_string_unittest(self):
27 """String unit tests"""
53 error = self.vapi.cli("test string " + name)
54 if error.find("failed") != -1:
55 self.logger.critical("FAILURE in the " + name + " test")
56 self.assertNotIn("failed", error)
59 if __name__ == "__main__":
60 unittest.main(testRunner=VppTestRunner)