def test_push(self): hh = HashHeap(htype=MAX_HEAP) [hh.push(x, str(x)) for x in xrange(5)] assert hh.size() == 5 hh.push(1,'1') assert hh.size() == 5