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 TestIosxrModule(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: