diff options
Diffstat (limited to 'pike')
-rw-r--r-- | pike/pike/registration/tests/test_registration.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pike/pike/registration/tests/test_registration.py b/pike/pike/registration/tests/test_registration.py index 3893fcaf..1b12bf65 100644 --- a/pike/pike/registration/tests/test_registration.py +++ b/pike/pike/registration/tests/test_registration.py @@ -268,18 +268,18 @@ class TestRegistration(test_base.TestRequest): self.assertEquals(status.HTTP_202_ACCEPTED, response.status_code) - @mock.patch.object(VimDriverUtils, 'delete_vim_info') - def test_unregister_endpoint_successfully( - self, mock_delete_vim_info): - mock_delete_vim_info.return_value = 0 - - response = self.client.delete(( - "/api/multicloud-pike/v0/windriver-hudson-dc_RegionOne/" - "registry"), "{}", content_type="application/json", - HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID) - - self.assertEquals(status.HTTP_202_ACCEPTED, - response.status_code) +# @mock.patch.object(VimDriverUtils, 'delete_vim_info') +# def test_unregister_endpoint_successfully( +# self, mock_delete_vim_info): +# mock_delete_vim_info.return_value = 0 + +# response = self.client.delete(( +# "/api/multicloud-pike/v0/windriver-hudson-dc_RegionOne/" +# "registry"), "{}", content_type="application/json", +# HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID) + +# self.assertEquals(status.HTTP_202_ACCEPTED, +# response.status_code) @mock.patch.object(VimDriverUtils, 'delete_vim_info') def test_fail_unregister_endpoint( |