vpp/test/asf/test_api_client.py

21 lines
475 B
Python
Raw Normal View History

#!/usr/bin/env python3
import unittest
2023-08-31 00:47:44 -04:00
from asfframework import VppAsfTestCase, VppTestRunner
2023-08-31 00:47:44 -04:00
class TestAPIClient(VppAsfTestCase):
"""API Internal client Test Cases"""
def test_client_unittest(self):
"""Internal API client"""
error = self.vapi.cli("test api internal")
if error:
self.logger.critical(error)
self.assertNotIn("failed", error)
if __name__ == "__main__":
unittest.main(testRunner=VppTestRunner)