def test_queue_dequeue_raises_indexerror(self):
     with self.assertRaises(IndexError):
         queue = Queue()
         value = 'A'
         queue.enqueue(value)
         queue.dequeue()
         queue.dequeue()
 def test_queue_dequeue_should_return_last_enqueued_value(self):
     queue = Queue()
     value = 'A'
     queue.enqueue(value)
     self.assertEqual(value, queue.dequeue())