summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorAndy McCrae <andy.mccrae@gmail.com>2012-09-27 11:58:14 +0000
committerAndy McCrae <andy.mccrae@gmail.com>2012-09-27 12:36:53 +0000
commit3db7a943bebbda5fea07fc80813cabc436fb892b (patch)
tree066c8b358d821b63ec606fd3d6f57c92bf30f940 /nova/tests
parent32b674b0abb338c82850fc24d39f9632c71503e6 (diff)
Fixes error message for flavor-create duplicate ID
Fixes bug 1056918 Change-Id: I516153211504b67f6e8b8ebb138abcef4be4d73e
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_instance_types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_instance_types.py b/nova/tests/test_instance_types.py
index d9d2669a3..5059b155a 100644
--- a/nova/tests/test_instance_types.py
+++ b/nova/tests/test_instance_types.py
@@ -159,7 +159,7 @@ class InstanceTypeTestCase(test.TestCase):
"""Ensures that flavorid duplicates raise InstanceTypeCreateFailed"""
flavorid = 'flavor1'
instance_types.create('name one', 256, 1, 120, 200, flavorid)
- self.assertRaises(exception.InstanceTypeExists,
+ self.assertRaises(exception.InstanceTypeIdExists,
instance_types.create,
'name two', 256, 1, 120, 200, flavorid)