mirror of https://github.com/celery/kombu.git
added order invariance of assert_has_calls in Redis restore test
This commit is contained in:
parent
76858bed8b
commit
f6b180c993
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue