Move assign_keypair method in base class
Change-Id: I69b8db037991f88b38b293560532bf51c0a04378
diff --git a/functional/test_template_resource.py b/functional/test_template_resource.py
index 80dcdce..2e929b4 100644
--- a/functional/test_template_resource.py
+++ b/functional/test_template_resource.py
@@ -361,11 +361,7 @@
def setUp(self):
super(TemplateResourceUpdateFailedTest, self).setUp()
self.client = self.orchestration_client
- if self.conf.keypair_name:
- self.keypair_name = self.conf.keypair_name
- else:
- self.keypair = self.create_keypair()
- self.keypair_name = self.keypair.id
+ self.assign_keypair()
def test_update_on_failed_create(self):
# create a stack with "server" dependent on "keypair", but