]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - test_khashmir.py
Add tracking of index file hashes from Release files.
[quix0rs-apt-p2p.git] / test_khashmir.py
index 3f4908f7c49b24d2c88be22f633cb14da0845a17..24a8760df054012fbf98dafb20d62ccaeafa5221 100644 (file)
@@ -1,11 +1,12 @@
-from unittest import *
-from khashmir import *
-import khash
-from copy import copy
+from unittest import defaultTestLoader, TextTestRunner, TestCase
+from sha import sha
+from random import randrange
+import os, sys
 
-from whrandom import randrange
+from twisted.internet import reactor
 
-import os
+from khashmir import Khashmir
+from khash import newID
 
 if __name__ =="__main__":
     tests = defaultTestLoader.loadTestsFromNames([sys.argv[0][:-3]])
@@ -113,8 +114,8 @@ class MultiTest(TestCase):
         
     def testStoreRetrieve(self):
         for i in range(10):
-            K = khash.newID()
-            V = khash.newID()
+            K = newID()
+            V = newID()
             
             for a in range(3):
                 self.done = 0