Fixed incorrect indentation in the tests

Change-Id: I8900ac8542a9a0fd3ea41a8031eb66e79cefecd6
This commit is contained in:
Alex Gaynor
2014-02-18 07:06:10 -08:00
parent 1dabd8c6de
commit c7f067f231

View File

@@ -301,13 +301,13 @@ class TestGetTemplateContents(testtools.TestCase):
'Could not fetch template from file://%s' % tmpl_file.name)
def test_get_template_contents_file_none(self):
ex = self.assertRaises(
exc.CommandError,
template_utils.get_template_contents)
self.assertEqual(
str(ex),
('Need to specify exactly one of --template-file, '
'--template-url or --template-object'))
ex = self.assertRaises(
exc.CommandError,
template_utils.get_template_contents)
self.assertEqual(
str(ex),
('Need to specify exactly one of --template-file, '
'--template-url or --template-object'))
def test_get_template_contents_parse_error(self):
with tempfile.NamedTemporaryFile() as tmpl_file: