class TestRedis(unittest.TestCase): def setUp(self): self.pool = PubSubPool("channel", size=2) self.queue = RedisQueue("test_q") def test_board_init(self): channel, pubsub = self.pool.join() assert "channel" in channel
def setUp(self): self.pool = PubSubPool("channel", size=2) self.queue = RedisQueue("test_q")