X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_abf.py;h=1de36c922217ecc50d544ec25118b51f43923e16;hb=2ce28d6014f44a98f5b3387a4709dd56dbc2f8df;hp=69d561bc19c999a19a83918bc458db410a18e8a1;hpb=f726f539185609cb4f3aee7f34906e8b538cd33e;p=vpp.git diff --git a/test/test_abf.py b/test/test_abf.py index 69d561bc19c..1de36c92221 100644 --- a/test/test_abf.py +++ b/test/test_abf.py @@ -88,9 +88,6 @@ class VppAbfPolicy(VppObject): def query_vpp_config(self): return find_abf_policy(self._test, self.policy_id) - def __str__(self): - return self.object_id() - def object_id(self): return ("abf-policy-%d" % self.policy_id) @@ -131,9 +128,6 @@ class VppAbfAttach(VppObject): self.policy_id, self.sw_if_index) - def __str__(self): - return self.object_id() - def object_id(self): return ("abf-attach-%d-%d" % (self.policy_id, self.sw_if_index)) @@ -141,6 +135,14 @@ class VppAbfAttach(VppObject): class TestAbf(VppTestCase): """ ABF Test Case """ + @classmethod + def setUpClass(cls): + super(TestAbf, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestAbf, cls).tearDownClass() + def setUp(self): super(TestAbf, self).setUp() @@ -171,7 +173,7 @@ class TestAbf(VppTestCase): # the application of ACLs to a forwarding path to achieve # ABF # So we construct just a few ACLs to ensure the ABF policies - # are correclty constructed and used. And a few path types + # are correctly constructed and used. And a few path types # to test the API path decoding. #