Merge pull request #112 from bigzaqui/base_new_methods

changed the mock data naming of files
This commit is contained in:
David Barroso committed 2015-12-08 15:40:04 +01:00
commit 83eaf0a23b
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')