diff options
-rw-r--r-- | vio/vio/tests/test_fake_heat_view.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_heat_view.py b/vio/vio/tests/test_fake_heat_view.py index 56a8270..3cdb41a 100644 --- a/vio/vio/tests/test_fake_heat_view.py +++ b/vio/vio/tests/test_fake_heat_view.py @@ -91,3 +91,15 @@ class TestFakeHeatService(unittest.TestCase): } resp = self.view.post(req, "1234abcd") self.assertEqual(201, resp.status_code) + + @mock.patch.object(fakeResponse, "deleteStack") + def test_delete_heat_stacks(self, mock_deleteStack): + req = mock.Mock() + req.META = { + "HTTP_X_AUTH_TOKEN": Token + } + mock_deleteStack.return_value = { + "" + } + resp = self.view.delete(req, "1234abcd", STACK_NAME, STACK_ID) + self.assertEqual(204, resp.status_code) |