Move assign_keypair method in base class
Change-Id: I69b8db037991f88b38b293560532bf51c0a04378
diff --git a/functional/test_validation.py b/functional/test_validation.py
index 52309cd..2d9669d 100644
--- a/functional/test_validation.py
+++ b/functional/test_validation.py
@@ -29,11 +29,7 @@
if not self.conf.instance_type:
raise self.skipException("No instance_type configured to test")
- 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_stack_validate_provider_references_parent_resource(self):
template = '''