Exemplo n.º 1
0
 def test_check_ready_missing(self):
     self.store.get('1234').AndRaise(KeyError)
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay, store_pool=Pool(5))
     queue._add_queued((10, '1234'))
     queue._check_ready(20)
     queue.store_pool.join()
Exemplo n.º 2
0
 def test_check_ready_missing(self):
     self.store.get('1234').AndRaise(KeyError)
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay, store_pool=Pool(5))
     queue._add_queued((10, '1234'))
     queue._check_ready(20)
     queue.store_pool.join()
 def test_check_ready(self):
     self.store.get('1234').AndReturn((self.env, 0))
     self.relay._attempt(self.env, 0)
     self.store.remove('1234')
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay, store_pool=Pool(5))
     queue._add_queued((10, '1234'))
     queue._check_ready(20)
     queue.store_pool.join()
Exemplo n.º 4
0
 def test_check_ready(self):
     self.store.get('1234').AndReturn((self.env, 0))
     self.relay._attempt(self.env, 0)
     self.store.remove('1234')
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay, store_pool=Pool(5))
     queue._add_queued((10, '1234'))
     queue._check_ready(20)
     queue.store_pool.join()
 def test_check_ready_empty(self):
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay, store_pool=5)
     queue._add_queued((20, '1234'))
     queue._check_ready(10)
     queue.store_pool.join()
Exemplo n.º 6
0
 def test_check_ready_empty(self):
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay, store_pool=5)
     queue._add_queued((20, '1234'))
     queue._check_ready(10)
     queue.store_pool.join()