From e09b5fa954bc40327320256dada61f5a81493346 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 15 Oct 2015 14:11:19 +0900 Subject: [PATCH] test_create_network_segment_allocation_fails: Assert the status Related-Bug: #1505908 Change-Id: I17ee725a458f86ee59f7988b385e76b83ab9fd3e --- neutron/tests/unit/plugins/ml2/test_plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neutron/tests/unit/plugins/ml2/test_plugin.py b/neutron/tests/unit/plugins/ml2/test_plugin.py index b16b9d407..814223135 100644 --- a/neutron/tests/unit/plugins/ml2/test_plugin.py +++ b/neutron/tests/unit/plugins/ml2/test_plugin.py @@ -318,7 +318,9 @@ class TestMl2NetworksV2(test_plugin.TestNetworksV2, ) as f: data = {'network': {'tenant_id': 'sometenant', 'name': 'dummy', 'admin_state_up': True, 'shared': False}} - self.new_create_request('networks', data).get_response(self.api) + req = self.new_create_request('networks', data) + res = req.get_response(self.api) + self.assertEqual(500, res.status_int) self.assertEqual(db_api.MAX_RETRIES + 1, f.call_count) -- 2.45.2