update test
This commit is contained in:
parent
ae631f05c3
commit
af096aee41
1 changed files with 0 additions and 10 deletions
|
@ -171,8 +171,6 @@ class KademliaProtocolTest(unittest.TestCase):
|
||||||
result.pop('protocolVersion')
|
result.pop('protocolVersion')
|
||||||
return result
|
return result
|
||||||
|
|
||||||
self.assertEquals(self.remote_contact.protocolVersion, 1)
|
|
||||||
|
|
||||||
self.remote_node.findValue = findValue
|
self.remote_node.findValue = findValue
|
||||||
d = self.remote_contact.findValue(fake_blob)
|
d = self.remote_contact.findValue(fake_blob)
|
||||||
self._reactor.advance(3)
|
self._reactor.advance(3)
|
||||||
|
@ -196,9 +194,6 @@ class KademliaProtocolTest(unittest.TestCase):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def testStoreToPre_0_20_0_Node(self):
|
def testStoreToPre_0_20_0_Node(self):
|
||||||
|
|
||||||
self.remote_node._protocol._protocolVersion = 0
|
|
||||||
|
|
||||||
def _dont_migrate(contact, method, *args):
|
def _dont_migrate(contact, method, *args):
|
||||||
return args, {}
|
return args, {}
|
||||||
|
|
||||||
|
@ -224,8 +219,6 @@ class KademliaProtocolTest(unittest.TestCase):
|
||||||
contact, key, value['token'], value['port'], originalPublisherID, 0
|
contact, key, value['token'], value['port'], originalPublisherID, 0
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertEquals(self.remote_contact.protocolVersion, 1)
|
|
||||||
|
|
||||||
self.remote_node.findValue = findValue
|
self.remote_node.findValue = findValue
|
||||||
self.remote_node.store = store
|
self.remote_node.store = store
|
||||||
|
|
||||||
|
@ -247,9 +240,6 @@ class KademliaProtocolTest(unittest.TestCase):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def testStoreFromPre_0_20_0_Node(self):
|
def testStoreFromPre_0_20_0_Node(self):
|
||||||
|
|
||||||
self.remote_node._protocol._protocolVersion = 0
|
|
||||||
|
|
||||||
def _dont_migrate(contact, method, *args):
|
def _dont_migrate(contact, method, *args):
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue