changed the mock data naming of files

This commit is contained in:
Edward Zambrano committed 2015-12-08 15:24:27 +01:00
1 parent 361fa6759a
commit c2e4fd3b7c
8 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ class FakeFortiOSDevice:
return data_file.read().splitlines()
def execute_command(self, command):
return self.read_txt_file('fortios/mock_data/{}.txt'.format(command.replace(' ', '_')))
return self.read_txt_file('fortios/mock_data/{}.txt'.format(command.replace(' ', '_').replace('|', '')))
def load_config(self, config_block):
self.running_config = FortiConfig('running')