def test_insert_01(): """Test insert function to populated queue.""" from priority import Priority new_p_q = Priority([("monkey", 1), ("dog", 1)]) new_p_q.insert("cat", 2) assert new_p_q.priority_queue[2] == ["cat"]
def test_insert(): """Test insert function to empty queue.""" from priority import Priority new_p_q = Priority() new_p_q.insert("monkey", 1) assert new_p_q.priority_queue[1] == ["monkey"]