diff options
Diffstat (limited to 'test/test_session.py')
-rw-r--r-- | test/test_session.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/test_session.py b/test/test_session.py new file mode 100644 index 00000000000..7219ffdc545 --- /dev/null +++ b/test/test_session.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +import unittest + +from framework import VppTestCase, VppTestRunner + + +class TestSession(VppTestCase): + """ Session Test Case """ + + @classmethod + def setUpClass(cls): + super(TestSession, cls).setUpClass() + + def setUp(self): + super(TestSession, self).setUp() + + def tearDown(self): + super(TestSession, self).tearDown() + self.vapi.session_enable_disable(is_enabled=1) + + def test_session(self): + """ Session Unit Tests """ + error = self.vapi.cli("test session all") + + if error: + self.logger.critical(error) + self.assertEqual(error.find("Failed"), -1) + +if __name__ == '__main__': + unittest.main(testRunner=VppTestRunner) |