blob: 7219ffdc5455e3e69fbaea7c8166fd3a851086b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)
|