2 """CLI functional tests"""
5 from framework import VppTestCase, VppTestRunner
8 class TestCLI(VppTestCase):
14 super(TestCLI, cls).setUpClass()
17 def tearDownClass(cls):
18 super(TestCLI, cls).tearDownClass()
21 super(TestCLI, self).setUp()
24 super(TestCLI, self).tearDown()
26 def test_cli_retval(self):
27 """ CLI inband retval """
28 rv = self.vapi.papi.cli_inband(cmd='this command does not exist')
29 self.assertNotEqual(rv.retval, 0)
31 rv = self.vapi.papi.cli_inband(cmd='show version')
32 self.assertEqual(rv.retval, 0)
35 if __name__ == '__main__':
36 unittest.main(testRunner=VppTestRunner)