]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
bug fix in store value
authorburris <burris>
Sun, 15 Sep 2002 19:35:56 +0000 (19:35 +0000)
committerburris <burris>
Sun, 15 Sep 2002 19:35:56 +0000 (19:35 +0000)
update testing

khashmir.py
test.py

index 104c9e949211160848889d16899c193457cb0d49..1722ad48ad9291a7375302b0035e45019ca297ed 100644 (file)
@@ -126,7 +126,7 @@ class Khashmir(xmlrpc.XMLRPC):
                    def default(err, node=node, table=table):
                        table.nodeFailed(node)
                    df = node.storeValue(key, value, self.node.senderDict())
-                   df.addCallbacks(cb, default)
+                   df.addCallback(cb)
        # this call is asynch
        self.findNode(key, _storeValueForKey)
        
diff --git a/test.py b/test.py
index f8ba5c0e391cb1c9b93fa1755ed96f3e96fa5845..2dc44dd461ae3ee69f3dbf9185adbf29a030a3fe 100644 (file)
--- a/test.py
+++ b/test.py
@@ -3,7 +3,7 @@ import unittest
 import ktable, khashmir
 import hash, node, knode
 import actions, xmlrpcclient
-import bencode, btemplate
+import btemplate
 
-tests = unittest.defaultTestLoader.loadTestsFromNames(['hash', 'node', 'knode', 'bencode', 'btemplate', 'actions',  'ktable', 'xmlrpcclient'])
+tests = unittest.defaultTestLoader.loadTestsFromNames(['hash', 'node', 'knode', 'btemplate', 'actions',  'ktable', 'xmlrpcclient'])
 result = unittest.TextTestRunner().run(tests)