Fix flake8 errors for junos tests (#66645)

Deal with F841 local variable foo is assigned to but never used
errors.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/66649/head
Paul Belanger 5 years ago committed by Daniel Mellado
parent 14ae3ba8c0
commit 1ee47a5969

@ -172,7 +172,6 @@ class TestJunosConfigModule(TestJunosModule):
self.assertEqual(kwargs['format'], 'json')
def test_junos_config_zeroize(self):
src = load_fixture('junos_config.json', content='str')
set_module_args(dict(zeroize='yes'))
self.execute_module(changed=True)
self.assertEqual(self.exec_rpc.call_count, 1)

@ -100,7 +100,7 @@ class TestJunosCommandModule(TestJunosModule):
def test_junos_rpc_args(self):
set_module_args(dict(rpc='get-software-information', args={'interface': 'em0', 'media': True}))
result = self.execute_module(format='xml')
self.execute_module(format='xml')
args, kwargs = self.exec_rpc.call_args
reply = args[1]
self.assertTrue(reply.find('<interface>em0</interface><media /></get-software-information>'))

Loading…
Cancel
Save