def test_listQueues(): q = QueuePool(1) q.createQueue("hello") assert list(q.listQueues(names=True)) == [ 'hello', 'admin_out', 'admin_in', 'failed', 'success', 'logs', 'metrics' ]
def test_getQueue(): q = QueuePool(1) q.createQueue("test") assert isinstance(q.getQueue("test"), Queue)
def test_hasQueue(): q = QueuePool(1) q.createQueue("test") assert (q.hasQueue("test"))
def test_createQueue(): q = QueuePool(1) q.createQueue("test") assert (q.queue.test)
def test_listQueues(): q = QueuePool(1) q.createQueue("hello") assert list(q.listQueues(names=True)) == ['hello', 'admin_out', 'admin_in', 'failed', 'success', 'logs', 'metrics']
def test_listQueues(): q = QueuePool(1) q.createQueue("hello") assert sorted(list(q.listQueues(names=True))) == sorted(['hello', 'failed', 'success', 'logs', 'metrics'])
def test_listQueues(): q = QueuePool(1) q.createQueue("hello") assert sorted(list(q.listQueues(names=True))) == sorted( ['hello', 'failed', 'success', 'logs', 'metrics'])