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