Skip to content

Commit

Permalink
Fixes #151
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Feb 7, 2016
1 parent f3d8e4a commit 4063ac9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/TestEOSDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def run_commands(self, command_list, encoding='json'):
if encoding == 'json':
result.append(self.read_json_file('eos/mock_data/{}.json'.format(command.replace(' ', '_'))))
else:
cmd = re.sub(r'[\[\]\*\^\+\s\|]', '_', command)
cmd = re.sub(r'[^a-zA-Z0-9]+', '_', command)
result.append({'output': self.read_txt_file('eos/mock_data/{}.txt'.format(cmd))})

return result

0 comments on commit 4063ac9

Please sign in to comment.