def test_exhausted(): # TODO TODO is empty should return true after dequeueing all previously queued items q = Queue() q.enqueue("apples") q.enqueue("bananas") q.enqueue("grapes") q.dequeue() q.dequeue() q.dequeue() actual = q.is_empty() expected = True assert actual == expected
def test_is_empty(queue_vals): q = Queue() assert q.is_empty() == True assert queue_vals.is_empty() == False
def test_is_empty(): # TODO is empty should return true if no items were enqueued q = Queue() actual = q.is_empty() expected = True assert actual == expected