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 08:16:54 -0400
commita88b8c8c0f591a3bfa8d7984343a27815184f495 (patch)
tree85986bed44cc7148c461d6aa7736b627b83c24fb /tests/test_kex.py
parente299181a5dda25aed4879ebcbe1359604448b3ae (diff)
downloadpython-paramiko-a88b8c8c0f591a3bfa8d7984343a27815184f495.tar
python-paramiko-a88b8c8c0f591a3bfa8d7984343a27815184f495.tar.gz
Imported Upstream version 1.7.7.1upstream/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'