def test_clearing_non_empty_queue():
    queue = MultiQueue(['q1', 'q2'])
    queue.put(1, 'q1')
    queue.clear(['q2'])
    assert_false(queue.empty(['q1']))
    queue.clear(['q1'])
    assert_true(queue.empty(['q1']))
def test_clearing_non_empty_queue():
    queue = MultiQueue(['q1', 'q2'])
    queue.put(1, 'q1')
    queue.clear(['q2'])
    assert_false(queue.empty(['q1']))
    queue.clear(['q1'])
    assert_true(queue.empty(['q1']))
def test_queue_non_emptiness():
    queue = MultiQueue(['q1', 'q2'])
    queue.put(1, 'q1')
    assert_false(queue.empty(['q1']))
    assert_true(queue.empty(['q2']))
    assert_false(queue.empty(['q1', 'q2']))
def test_queue_emptiness():
    queue = MultiQueue(['q1', 'q2'])
    assert_true(queue.empty(['q1']))
    assert_true(queue.empty(['q2']))
    assert_true(queue.empty(['q1', 'q2']))
def test_queue_non_emptiness():
    queue = MultiQueue(['q1', 'q2'])
    queue.put(1, 'q1')
    assert_false(queue.empty(['q1']))
    assert_true(queue.empty(['q2']))
    assert_false(queue.empty(['q1', 'q2']))
def test_queue_emptiness():
    queue = MultiQueue(['q1', 'q2'])
    assert_true(queue.empty(['q1']))
    assert_true(queue.empty(['q2']))
    assert_true(queue.empty(['q1', 'q2']))