aboutsummaryrefslogtreecommitdiff
path: root/tests/test_kex.py
diff options
context:
space:
mode:
authorJeremy T. Bouse <jbouse@debian.org>2011-05-29 08:16:54 -0400
committerJeremy T. Bouse <jbouse@debian.org>2011-05-29 10:15:03 -0400
commitbe5542c05e46b500e47b94bc8a6254cae8335a8b (patch)
tree1d13e6d43698839fb5fedc9a685cc5f634b4bacf /tests/test_kex.py
parent5952c8ac9aff9f0bf1fe295d9ed5c6ec1656d819 (diff)
downloadpython-paramiko-be5542c05e46b500e47b94bc8a6254cae8335a8b.tar
python-paramiko-be5542c05e46b500e47b94bc8a6254cae8335a8b.tar.gz
Imported Upstream version 1.7.7.1
Diffstat (limited to 'tests/test_kex.py')
-rw-r--r--tests/test_kex.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test_kex.py b/tests/test_kex.py
index 2ecb757..f6e6996 100644
--- a/tests/test_kex.py
+++ b/tests/test_kex.py
@@ -28,17 +28,15 @@ from paramiko.kex_gex import KexGex
from paramiko import Message
-class FakeRandpool (object):
- def stir(self):
- pass
- def get_bytes(self, n):
+class FakeRng (object):
+ def read(self, n):
return chr(0xcc) * n
class FakeKey (object):
def __str__(self):
return 'fake-key'
- def sign_ssh_data(self, randpool, H):
+ def sign_ssh_data(self, rng, H):
return 'fake-sig'
@@ -50,7 +48,7 @@ class FakeModulusPack (object):
class FakeTransport (object):
- randpool = FakeRandpool()
+ rng = FakeRng()
local_version = 'SSH-2.0-paramiko_1.0'
remote_version = 'SSH-2.0-lame'
local_kex_init = 'local-kex-init'