def test_peek(self): heap = XHeap(reversed(ascii_uppercase), key=self.key) self.assertEqual('Z', heap.peek())