Merge "Ensure assertion matches dict iter order in test"
This commit is contained in:
commit
fed5dcf5ee
|
@ -822,8 +822,9 @@ class TestIpNetnsCommand(TestIPCmdBase):
|
||||||
env = dict(FOO=1, BAR=2)
|
env = dict(FOO=1, BAR=2)
|
||||||
self.netns_cmd.execute(['ip', 'link', 'list'], env)
|
self.netns_cmd.execute(['ip', 'link', 'list'], env)
|
||||||
execute.assert_called_once_with(
|
execute.assert_called_once_with(
|
||||||
['ip', 'netns', 'exec', 'ns', 'env', 'FOO=1', 'BAR=2',
|
['ip', 'netns', 'exec', 'ns', 'env'] +
|
||||||
'ip', 'link', 'list'],
|
['%s=%s' % (k, v) for k, v in env.items()] +
|
||||||
|
['ip', 'link', 'list'],
|
||||||
root_helper='sudo', check_exit_code=True)
|
root_helper='sudo', check_exit_code=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue