2 from framework import VppTestCase
4 """ TestPAPI is a subclass of VPPTestCase classes.
6 Basic test for sanity check of the Python API binding.
11 class TestPAPI(VppTestCase):
12 """ PAPI Test Case """
16 super(TestPAPI, cls).setUpClass()
19 def test_show_version(self):
20 rv = self.v.show_version()
21 self.assertEqual(rv.retval, 0)
23 def test_show_version_invalid_param(self):
24 self.assertRaises(ValueError, self.v.show_version, foobar='foo')
26 def test_u8_array(self):
27 rv = self.v.get_node_index(node_name='ip4-lookup')
28 self.assertEqual(rv.retval, 0)
30 self.assertRaises(ValueError, self.v.get_node_index,