diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2011-08-02 11:17:42 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-08-02 11:17:42 +0000 |
| commit | efdd1bb019ac431d7d7a1923ff8580de1bb34217 (patch) | |
| tree | 44e2341e236c54eeeb05a6c033cdd2d2a81e83b6 /nova/tests | |
| parent | 483f8f9738b6e87642bfb0811b55ae6240f966cc (diff) | |
| parent | 25a831fd449dbbb7f0c2cdac404d7600a6da9f27 (diff) | |
Better error handling for resizing.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_compute.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py index 860cdedd3..879e4b9cb 100644 --- a/nova/tests/test_compute.py +++ b/nova/tests/test_compute.py @@ -496,8 +496,8 @@ class ComputeTestCase(test.TestCase): db.instance_update(self.context, instance_id, {'instance_type_id': inst_type['id']}) - self.assertRaises(exception.ApiError, self.compute_api.resize, - context, instance_id, 1) + self.assertRaises(exception.CannotResizeToSmallerSize, + self.compute_api.resize, context, instance_id, 1) self.compute.terminate_instance(context, instance_id) @@ -508,8 +508,8 @@ class ComputeTestCase(test.TestCase): self.compute.run_instance(self.context, instance_id) - self.assertRaises(exception.ApiError, self.compute_api.resize, - context, instance_id, 1) + self.assertRaises(exception.CannotResizeToSameSize, + self.compute_api.resize, context, instance_id, 1) self.compute.terminate_instance(context, instance_id) |
