Fix incorrect use of raise in template test

Change-Id: Ie397fd4f7b27a38910b329d70ada6d884118e13a
This commit is contained in:
Sam Morrison 2019-06-18 18:44:55 +10:00
parent 49a11dd9c7
commit aaff2b48bf

View File

@ -44,7 +44,7 @@ class TemplateTest(trove_testtools.TestCase):
flavor_multiplier = test_flavor['ram'] // 512
found_group = self._find_in_template(contents, teststr)
if not found_group:
raise "Could not find text in template"
raise Exception("Could not find text in template")
# Check that the last group has been rendered
memsize = found_group.split(" ")[2]
self.assertEqual("%sM" % (8 * flavor_multiplier), memsize)