Esempio n. 1
0
 def test_publish_retry_calls_ensure(self):
     p = Producer(Mock())
     p._connection = Mock()
     p._connection.declared_entities = set()
     ensure = p.connection.ensure = Mock()
     p.publish('foo', exchange='foo', retry=True)
     ensure.assert_called()
Esempio n. 2
0
 def test_publish_retry_calls_ensure(self):
     p = Producer(Mock())
     p._connection = Mock()
     p._connection.declared_entities = set()
     ensure = p.connection.ensure = Mock()
     p.publish('foo', exchange='foo', retry=True)
     ensure.assert_called()
Esempio n. 3
0
 def test_publish_retry_calls_ensure(self):
     p = Producer(Mock())
     p._connection = Mock()
     ensure = p.connection.ensure = Mock()
     p.publish('foo', exchange='foo', retry=True)
     self.assertTrue(ensure.called)
Esempio n. 4
0
 def test_publish_retry_calls_ensure(self):
     p = Producer(Mock())
     p._connection = Mock()
     ensure = p.connection.ensure = Mock()
     p.publish('foo', exchange='foo', retry=True)
     self.assertTrue(ensure.called)