diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-04-24 21:30:00 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-04-24 21:30:00 +0000 |
| commit | e2a40bea8c0a7c59da02c1f46bf09fe9f97dacba (patch) | |
| tree | 730645edb420beb1818dc4213a7bcf5be1ea856a | |
| parent | d6857a43609288c4c07ecec3471c5b16902c259d (diff) | |
| parent | a8b4902ff4c8640d454ba53e3c21051aa5ea05ce (diff) | |
| download | nova-e2a40bea8c0a7c59da02c1f46bf09fe9f97dacba.tar.gz nova-e2a40bea8c0a7c59da02c1f46bf09fe9f97dacba.tar.xz nova-e2a40bea8c0a7c59da02c1f46bf09fe9f97dacba.zip | |
Merge "Add missing test for db.instance_type_destroy method"
| -rw-r--r-- | nova/tests/test_db_api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/tests/test_db_api.py b/nova/tests/test_db_api.py index 0af6ed143..ad793f13f 100644 --- a/nova/tests/test_db_api.py +++ b/nova/tests/test_db_api.py @@ -2083,6 +2083,10 @@ class InstanceTypeTestCase(BaseInstanceTypeTestCase): r_inst_type2 = db.instance_type_get(self.ctxt, inst_type2['id']) self._assertEqualObjects(inst_type2, r_inst_type2, 'extra_specs') + def test_instance_type_destroy_not_found(self): + self.assertRaises(exception.InstanceTypeNotFound, + db.instance_type_destroy, self.ctxt, 'nonexists') + def test_instance_type_create_duplicate_name(self): self._create_inst_type({}) self.assertRaises(exception.InstanceTypeExists, |
