From f6b180c9936c6734de0a3e2e2f5840f9fd42acbc Mon Sep 17 00:00:00 2001 From: Federico Ficarelli Date: Tue, 14 Jun 2016 10:28:13 +0200 Subject: [PATCH] added order invariance of assert_has_calls in Redis restore test --- kombu/tests/transport/test_redis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kombu/tests/transport/test_redis.py b/kombu/tests/transport/test_redis.py index c677847b..3b75ab35 100644 --- a/kombu/tests/transport/test_redis.py +++ b/kombu/tests/transport/test_redis.py @@ -321,13 +321,13 @@ class test_Channel(Case): pl1 = {'body': 'BODY'} spl1 = dumps(pl1) lookup = self.channel._lookup = Mock(name='_lookup') - lookup.return_value = ['george', 'elaine'] + lookup.return_value = {'george', 'elaine'} self.channel._do_restore_message( pl1, 'ex', 'rkey', client, ) client.rpush.assert_has_calls([ call('george', spl1), call('elaine', spl1), - ]) + ], any_order=True) client = Mock(name='client') pl2 = {'body': 'BODY2', 'headers': {'x-funny': 1}}