summaryrefslogtreecommitdiff
path: root/heat/tests/test_resource.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat/tests/test_resource.py')
-rw-r--r--heat/tests/test_resource.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/heat/tests/test_resource.py b/heat/tests/test_resource.py
index cb70bac19..29096277b 100644
--- a/heat/tests/test_resource.py
+++ b/heat/tests/test_resource.py
@@ -69,12 +69,13 @@ class ResourceTest(common.HeatTestCase):
self.dummy_timeout = 10
def test_get_class_ok(self):
- cls = resources.global_env().get_class('GenericResourceType')
+ cls = resources.global_env().get_class_to_instantiate(
+ 'GenericResourceType')
self.assertEqual(generic_rsrc.GenericResource, cls)
def test_get_class_noexist(self):
self.assertRaises(exception.StackValidationFailed,
- resources.global_env().get_class,
+ resources.global_env().get_class_to_instantiate,
'NoExistResourceType')
def test_resource_new_ok(self):