def test_contains_true(self): h = MaxHeap([6, 8, 2, 2, 60, 7, 9]) self.assertTrue(h.contains(2))
def test_contains_false(self): h = MaxHeap([6, 8, 2, 60, 7, 9, 3, 67]) self.assertFalse(h.contains(10))
def test_contains_when_empty_heap(self): h = MaxHeap() self.assertFalse(h.contains(3))