Exemplo n.º 1
0
Arquivo: base.py Projeto: jortel/gofer
 def test_crud(self):
     print('test CRUD')
     queue = Queue('test.13')
     queue.durable = False
     queue.declare(self.url)
     exchange = Exchange('test_crud_13.direct')
     exchange.declare(self.url)
     exchange.bind(queue, self.url)
     queue.delete(self.url)
     exchange.delete(self.url)
Exemplo n.º 2
0
 def test_crud(self):
     print "test CRUD"
     queue = Queue("test.13")
     queue.durable = False
     queue.declare(self.url)
     exchange = Exchange("test_crud_13.direct")
     exchange.declare(self.url)
     exchange.bind(queue, self.url)
     queue.delete(self.url)
     exchange.delete(self.url)
Exemplo n.º 3
0
 def test_crud(self):
     print 'test CRUD'
     queue = Queue('test.13')
     queue.durable = False
     queue.declare(self.url)
     exchange = Exchange('test_crud_13.direct')
     exchange.declare(self.url)
     exchange.bind(queue, self.url)
     queue.delete(self.url)
     exchange.delete(self.url)
Exemplo n.º 4
0
Arquivo: base.py Projeto: jortel/gofer
 def test_custom_direct_exchange(self):
     print('test custom (direct) exchange')
     address = Address('test_11.direct/test.11')
     exchange = Exchange(address.exchange, policy='direct')
     exchange.durable = False
     exchange.declare(self.url)
     queue = Queue(address.queue)
     queue.durable = False
     queue.declare(self.url)
     exchange.bind(queue, self.url)
     self.producer_reader(address)
Exemplo n.º 5
0
Arquivo: base.py Projeto: jortel/gofer
 def test_custom_topic_exchange(self):
     print('test custom (topic) exchange')
     address = Address('test_12.topic/test.12')
     exchange = Exchange(address.exchange, policy='topic')
     exchange.durable = False
     exchange.declare(self.url)
     queue = Queue(address.queue)
     queue.durable = False
     queue.declare(self.url)
     exchange.bind(queue, self.url)
     self.producer_reader(address)
Exemplo n.º 6
0
 def test_custom_direct_exchange(self):
     print 'test custom (direct) exchange'
     address = Address('test_11.direct/test.11')
     exchange = Exchange(address.exchange, policy='direct')
     exchange.durable = False
     exchange.declare(self.url)
     queue = Queue(address.queue)
     queue.durable = False
     queue.declare(self.url)
     exchange.bind(queue, self.url)
     self.producer_reader(address)
Exemplo n.º 7
0
 def test_custom_topic_exchange(self):
     print 'test custom (topic) exchange'
     address = Address('test_12.topic/test.12')
     exchange = Exchange(address.exchange, policy='topic')
     exchange.durable = False
     exchange.declare(self.url)
     queue = Queue(address.queue)
     queue.durable = False
     queue.declare(self.url)
     exchange.bind(queue, self.url)
     self.producer_reader(address)