def test_send(self):
    pub = compat.Publisher(self.connection, exchange='test_Publisher_send', routing_key='rkey')
    pub.send({'foo': 'bar'})
    self.assertIn('basic_publish', pub.backend)
    pub.close()
def test_send(self):
    pub = compat.Publisher(self.connection, exchange='test_Publisher_send', routing_key='rkey')
    pub.send({'foo': 'bar'})
    self.assertIn('basic_publish', pub.backend)
    pub.close()