diff options
author | Robey Pointer <robey@twitter.com> | 2011-05-21 19:11:34 -0700 |
---|---|---|
committer | Robey Pointer <robey@twitter.com> | 2011-05-21 19:11:34 -0700 |
commit | e891a5e4734464f17f1b2029d873773028637597 (patch) | |
tree | 51e6580071f8cea42f1d8c0109a507b8f140555b /tests/test_kex.py | |
parent | 33482ff338ef5049b46ef61ac0d646bb5e5f7d58 (diff) | |
parent | 044e7029986a060552770feb1687b00862f1a6ba (diff) |
Merge pull request #8 from garyvdm/master
Untitled
Diffstat (limited to 'tests/test_kex.py')
-rw-r--r-- | tests/test_kex.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test_kex.py b/tests/test_kex.py index 2ecb757c..f6e69960 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' |