]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht_Khashmir/node.py
Change all unittests to use twisted's trial.
[quix0rs-apt-p2p.git] / apt_dht_Khashmir / node.py
index fda6fbed6508179ef51753136e04aaddebb2197f..dabe08cec4631b5a06e9b18d07262c75f01e464a 100644 (file)
@@ -4,10 +4,12 @@
 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',
+NULL_ID = 20 * '\0'
 
 class Node:
     """encapsulate contact info"""
@@ -73,8 +75,6 @@ class Node:
         return self.num != a
 
 
-import unittest
-
 class TestNode(unittest.TestCase):
     def setUp(self):
         self.node = Node().init(khash.newID(), 'localhost', 2002)