Fix method name call when files cannot be found

Change-Id: I0e2b11979383ec2353509046b6a77199533058d8
This commit is contained in:
Darragh Bailey 2014-07-12 17:51:20 +01:00
parent 04139e0f5e
commit 8752523880
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ def get_scenarios(fixtures_path, in_ext='yaml', out_ext='xml'):
if output_candidate not in files:
raise Exception(
"No {0} file named '{1}' to match {2} file '{3}'"
.format(out_ext.toupper(), output_candidate,
in_ext.toupper(), input_filename))
.format(out_ext.upper(), output_candidate,
in_ext.upper(), input_filename))
conf_candidate = re.sub(r'\.yaml$', '.conf', input_filename)
# If present, add the configuration file