using the calculated path for the template tests

Change-Id: Ifc5f142cf36a387d32f2ea70dfcb1bb33a44a056
This commit is contained in:
Chris Alfonso 2012-05-23 15:37:07 -04:00
parent 5467f40da3
commit b009878681
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ class instancesTest(unittest.TestCase):
print "instancesTest teardown complete"
def test_instance_create(self):
f = open('templates/WordPress_Single_Instance_gold.template')
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
t = json.loads(f.read())
f.close()
@ -80,7 +80,7 @@ class instancesTest(unittest.TestCase):
assert(instance.id > 0)
def test_instance_create_delete(self):
f = open('templates/WordPress_Single_Instance_gold.template')
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
t = json.loads(f.read())
f.close()

View File

@ -31,7 +31,7 @@ class stacksTest(unittest.TestCase):
# We use this in a number of tests so it's factored out here.
def start_wordpress_stack(self, stack_name):
f = open('templates/WordPress_Single_Instance_gold.template')
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
t = json.loads(f.read())
f.close()
params = {}
@ -148,7 +148,7 @@ class stacksTest(unittest.TestCase):
self.m.ReplayAll()
stack.create_blocking()
f = open('templates/WordPress_Single_Instance_gold.template')
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
t = json.loads(f.read())
params = {}
parameters = {}