diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_util.py | 6 |
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) + |