old_contents: # -*- coding: utf-8 -*-
  """Prioityq tests."""
  import pytest
  
  
  def test_insert():
      """Test insert method."""
      from priorityq import PriorityQueue
      test_instance = PriorityQueue()
      test_instance.insert('data', 1)
      assert test_instance.dict[1] == ['data']
  
  
  def test_pop_empty():
      """Test pop from empty PQ raises index error."""
      from priorityq import PriorityQueue
      test_instance = PriorityQueue()
      with pytest.raises(IndexError):
          test_instance.pop()
  
new_contents: # -*- coding: utf-8 -*-
  """Prioityq tests."""
  import pytest
  
  
  def test_insert():
      """Test insert method."""
      from priorityq import PriorityQueue
      test_instance = PriorityQueue()
      test_instance.insert('data', 1)
      assert test_instance.dict[1] == ['data']
  
  
  def test_pop_empty():
      """Test pop from empty PQ raises index error."""
      from priorityq import PriorityQueue
      test_instance = PriorityQueue()
      with pytest.raises(IndexError):
          test_instance.pop()
  
  
  def test_pop():
      """Test pop method."""
      from priorityq import PriorityQueue
      test_instance = PriorityQueue()
      test_instance.insert('data', 1)
      assert test_instance.pop() == ('data')
  
subject: create pop empty test