summaryrefslogtreecommitdiff
path: root/test/units/modules
diff options
context:
space:
mode:
authorTrishna Guha <trishnaguha17@gmail.com>2017-11-14 15:23:11 +0000
committerGitHub <noreply@github.com>2017-11-14 15:23:11 +0000
commit3ee2501c83d23419b689f02ca9c095cd11c1038a (patch)
tree3f48f4582e80b1e67369e9d2d801e36d929102a7 /test/units/modules
parent177a4fb3ec00c86867e11677d70453fcbdf3e4ba (diff)
downloadansible-3ee2501c83d23419b689f02ca9c095cd11c1038a.tar.gz
multiple fixes nxos (#32903)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
Diffstat (limited to 'test/units/modules')
-rw-r--r--test/units/modules/network/nxos/test_nxos_interface.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/units/modules/network/nxos/test_nxos_interface.py b/test/units/modules/network/nxos/test_nxos_interface.py
index a6afed2e46..b9e14f1abb 100644
--- a/test/units/modules/network/nxos/test_nxos_interface.py
+++ b/test/units/modules/network/nxos/test_nxos_interface.py
@@ -62,14 +62,12 @@ class TestNxosInterfaceModule(TestNxosModule):
def test_nxos_interface_up(self):
set_module_args(dict(interface='loopback0'))
result = self.execute_module(changed=True)
- self.assertIn('interface loopback0', result['commands'])
- self.assertIn('no shutdown', result['commands'])
+ self.assertEqual(result['commands'], ['interface loopback0', 'no shutdown'])
def test_nxos_interface_down(self):
set_module_args(dict(interface='loopback0', admin_state='down'))
result = self.execute_module(changed=True)
- self.assertIn('interface loopback0', result['commands'])
- self.assertIn('shutdown', result['commands'])
+ self.assertEqual(result['commands'], ['interface loopback0', 'shutdown'])
def test_nxos_interface_delete(self):
set_module_args(dict(interface='loopback0', state='absent'))