mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
convert key iterator to list as python 3 wont index an iterator
This commit is contained in:
parent
ba0280e727
commit
25427d845e
1 changed files with 2 additions and 2 deletions
|
@ -311,11 +311,11 @@ class NapalmNetworkModuleTestCase(TestCase, LoaderModuleMockMixin):
|
|||
|
||||
def test_traceroute(self):
|
||||
ret = napalm_network.traceroute('destination.com')
|
||||
assert ret['out'].keys()[0] == 'success'
|
||||
assert list(ret['out'].keys())[0] == 'success'
|
||||
|
||||
def test_ping(self):
|
||||
ret = napalm_network.ping('destination.com')
|
||||
assert ret['out'].keys()[0] == 'success'
|
||||
assert list(ret['out'].keys())[0] == 'success'
|
||||
|
||||
def test_arp(self):
|
||||
ret = napalm_network.arp()
|
||||
|
|
Loading…
Add table
Reference in a new issue