from time import time
from types import InstanceType
+from twisted.trial import unittest
+
import khash
+# magic id to use before we know a peer's id
+NULL_ID = 20 * '\0'
+
class Node:
"""encapsulate contact info"""
def __init__(self):
return self.num != a
-import unittest
-
class TestNode(unittest.TestCase):
def setUp(self):
self.node = Node().init(khash.newID(), 'localhost', 2002)