1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-29 23:49:09 +00:00

Actually check for equality on empty commands array (#25308)

This commit is contained in:
Nathaniel Case 2017-06-06 09:56:44 -04:00 committed by GitHub
parent 0133a5a763
commit f52dcef7ba
7 changed files with 8 additions and 10 deletions

View file

@ -75,7 +75,7 @@ class TestEosModule(unittest.TestCase):
result = self.changed(changed)
self.assertEqual(result['changed'], changed, result)
if commands:
if commands is not None:
if sort:
self.assertEqual(sorted(commands), sorted(result['commands']), result['commands'])
else: