diff options
author | Federico Ficarelli <federico.ficarelli@gmail.com> | 2016-06-14 10:28:13 +0200 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2016-06-23 16:10:59 -0700 |
commit | f6b180c9936c6734de0a3e2e2f5840f9fd42acbc (patch) | |
tree | 80a998956ab8037e96eea8eb73145b83fd6958ec /kombu | |
parent | 76858bed8b882edd68da8e941134dc2536436a97 (diff) | |
download | kombu-f6b180c9936c6734de0a3e2e2f5840f9fd42acbc.tar.gz |
added order invariance of assert_has_calls in Redis restore test
Diffstat (limited to 'kombu')
-rw-r--r-- | kombu/tests/transport/test_redis.py | 4 |
1 files 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}} |