Merge "Fix assignment-from-no-return error"

This commit is contained in:
Zuul 2024-04-25 17:31:42 +00:00 committed by Gerrit Code Review
commit 22a3384194
1 changed files with 4 additions and 2 deletions

View File

@ -117,9 +117,11 @@ class ConntrackHelperTestCase(ml2_test_base.ML2TestFramework,
def test_delete_conntrack_helper(self):
res = self.cth_plugin.create_router_conntrack_helper(
self.context, self.router['id'], self.conntack_helper)
delete = self.cth_plugin.delete_router_conntrack_helper(
self.cth_plugin.delete_router_conntrack_helper(
self.context, res['id'], self.router['id'])
self.assertIsNone(delete)
self.assertRaises(cth_exc.ConntrackHelperNotFound,
self.cth_plugin.delete_router_conntrack_helper,
self.context, res['id'], self.router['id'])
def test_negative_delete_conntrack_helper(self):
self.assertRaises(cth_exc.ConntrackHelperNotFound,