mirror of https://github.com/celery/kombu.git
Tests passing
This commit is contained in:
parent
c3a22adfb4
commit
e37467a471
|
@ -225,6 +225,7 @@ class test_Channel(Case):
|
|||
self.channel = self.connection.default_channel
|
||||
|
||||
def create_connection(self, **kwargs):
|
||||
kwargs.setdefault('transport_options', {'fanout_patterns': True})
|
||||
return Connection(transport=Transport, **kwargs)
|
||||
|
||||
def _get_one_delivery_tag(self, n='test_uniq_tag'):
|
||||
|
|
|
@ -54,8 +54,10 @@ class test_Fanout(ExchangeCase):
|
|||
self.e.channel.supports_fanout = True
|
||||
message = Mock()
|
||||
|
||||
self.e.deliver(message, 'exchange', None)
|
||||
self.e.channel._put_fanout.assert_called_with('exchange', message)
|
||||
self.e.deliver(message, 'exchange', 'rkey')
|
||||
self.e.channel._put_fanout.assert_called_with(
|
||||
'exchange', message, 'rkey',
|
||||
)
|
||||
|
||||
def test_deliver_when_fanout_unsupported(self):
|
||||
self.e.channel = Mock()
|
||||
|
|
Loading…
Reference in New Issue