def test_iteration(self):
        heap = NodeHeap(mknode(intid=0), 5)
        nodes = [mknode(intid=x) for x in range(10)]
        for index, node in enumerate(nodes):
            heap.push(node)
        for index, node in enumerate(heap):
            self.assertEqual(index, node.long_id)
            self.assertTrue(index != 5)
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/dht/tests/test_node.py/NodeHeapTest.test_iteration/operator `<` -> `!=`