Change to sets, we don't gaurantee minion ordering in returns

This commit is contained in:
Thomas Jackson 2015-04-09 09:06:59 -07:00
parent 7614f7ed10
commit 77395d76d8

View File

@ -42,7 +42,7 @@ class NetapiClientTest(TestCase):
# Remove all the volatile values before doing the compare.
self.assertIn('jid', ret)
ret.pop('jid', None)
self.assertEqual(ret, {'minions': ['minion', 'sub_minion']})
self.assertEqual(set(ret['minions']), set(['minion', 'sub_minion']))
def test_wheel(self):
low = {'client': 'wheel', 'fun': 'key.list_all'}