added order invariance of assert_has_calls in Redis restore test

This commit is contained in:
Federico Ficarelli 2016-06-14 10:28:13 +02:00 committed by Ask Solem
parent 76858bed8b
commit f6b180c993
1 changed files with 2 additions and 2 deletions

View File

@ -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}}