summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2008-02-17 18:41:39 -0800
committerRobey Pointer <robey@lag.net>2008-02-17 18:41:39 -0800
commitd81e0038d2d1729dde50fbb0e90b39089f485b19 (patch)
tree4eee1acd4eb00e30df82bab50a856b7e347afe68 /tests/test_util.py
parent06faa6f2ed7015ba49ee4999cc91c8d1f7707ce3 (diff)
downloadparamiko-d81e0038d2d1729dde50fbb0e90b39089f485b19.tar.gz
[project @ robey@lag.net-20080218024139-i2t8y0f0dd93xjo1]
bug 189466: fix typo in osrandom.py (from patch in bug report) and add a friggin' unit test.
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 2cf57822..05fcc67c 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -142,3 +142,9 @@ class UtilTest (unittest.TestCase):
finally:
os.unlink('hostfile.temp')
+ def test_6_random(self):
+ from paramiko.common import randpool
+ # just verify that we can pull out 32 bytes and not get an exception.
+ x = randpool.get_bytes(32)
+ self.assertEquals(len(x), 32)
+