From db26ded539a823e64a40171c586ea4acb8fef727 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 6 Mar 2020 09:21:03 -0500 Subject: [PATCH] Fix bulk port tag test_type_args_passed_to_extension() It was checking the call arguments incorrectly, which was caught by unittest.mock but not by mock library. Trivialfix Change-Id: I00b8cd364c869eabb6b1cfe1f7ed4eb8e5f22a87 --- .../ml2/extensions/test_tag_ports_during_bulk_creation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/tests/unit/plugins/ml2/extensions/test_tag_ports_during_bulk_creation.py b/neutron/tests/unit/plugins/ml2/extensions/test_tag_ports_during_bulk_creation.py index 499fb08d8b3..faf509ae21d 100644 --- a/neutron/tests/unit/plugins/ml2/extensions/test_tag_ports_during_bulk_creation.py +++ b/neutron/tests/unit/plugins/ml2/extensions/test_tag_ports_during_bulk_creation.py @@ -123,7 +123,7 @@ class TagPortsDuringBulkCreationTestCase(test_plugin.Ml2PluginV2TestCase): ports_req = self.new_create_request('ports', req_body) res = ports_req.get_response(self.api) self.assertEqual(201, res.status_int) - self.assertIsInstance(patched_method.call_args.args[1], + self.assertIsInstance(patched_method.call_args[0][1], dict) - self.assertIsInstance(patched_method.call_args.args[2], + self.assertIsInstance(patched_method.call_args[0][2], dict)