def test_head_non_empty(self): queue = ArrayQueue() queue.insert(1) self.assertEqual(queue.head(), 1)
def test_head_empty(self): queue = ArrayQueue() with self.assertRaises(ValueError): queue.head()