Make pylama happy

This commit is contained in:
David Barroso committed 2016-11-27 14:19:12 +01:00
1 parent f5edd34d8b
commit 4d0325eb97
3 files changed
+45 -23

No files matched your search

+5 -3
View File
@@ -60,9 +60,11 @@ class FakeFortiOSDevice:
def execute_command(self, command):
return self.read_txt_file(
'fortios/mock_data/{}.txt'.format(command.replace(' ', '_').replace('|', '').replace(':', '')))
'fortios/mock_data/{}.txt'.format(
command.replace(' ', '_').replace('|', '').replace(':', '')))
def load_config(self, config_block):
self.running_config = FortiConfig('running')
self.running_config.parse_config_output(self.read_txt_file('fortios/mock_data/{}.txt'.format(
config_block.replace(' ', '_'))))
self.running_config.parse_config_output(
self.read_txt_file('fortios/mock_data/{}.txt'.format(
config_block.replace(' ', '_'))))