X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_tcp.py;h=40579e284e448cd562cfe4e8e3f4046946f9b6a4;hb=7c0eb56f4;hp=c5366282838a998dbfb79a1683c0b4520f0c8400;hpb=22ab6f7cbb0f6139302aa6ca9f0c96dba17a37a7;p=vpp.git diff --git a/test/test_tcp.py b/test/test_tcp.py index c5366282838..40579e284e4 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest @@ -13,6 +13,10 @@ class TestTCP(VppTestCase): def setUpClass(cls): super(TestTCP, cls).setUpClass() + @classmethod + def tearDownClass(cls): + super(TestTCP, cls).tearDownClass() + def setUp(self): super(TestTCP, self).setUp() self.vapi.session_enable_disable(is_enabled=1) @@ -32,9 +36,9 @@ class TestTCP(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del(namespace_id=b"0", + self.vapi.app_namespace_add_del(namespace_id="0", sw_if_index=self.loop0.sw_if_index) - self.vapi.app_namespace_add_del(namespace_id=b"1", + self.vapi.app_namespace_add_del(namespace_id="1", sw_if_index=self.loop1.sw_if_index) def tearDown(self): @@ -83,6 +87,14 @@ class TestTCP(VppTestCase): class TestTCPUnitTests(VppTestCase): "TCP Unit Tests" + @classmethod + def setUpClass(cls): + super(TestTCPUnitTests, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestTCPUnitTests, cls).tearDownClass() + def setUp(self): super(TestTCPUnitTests, self).setUp() self.vapi.session_enable_disable(is_enabled=1)