summaryrefslogtreecommitdiff
path: root/src/OpenSSL/rand.py
diff options
context:
space:
mode:
authorAlex Chan <alex@alexwlchan.net>2016-10-24 16:34:41 +0100
committerHynek Schlawack <hs@ox.cx>2016-10-24 17:34:41 +0200
commit6b69c55372a390ca350fd6d2749452ffe3f55049 (patch)
tree2eda52e47b788db8f0dfa2bf5609bd2717d87417 /src/OpenSSL/rand.py
parent29add1dc54122fd15d712a86bf305ab9c2ef8bc6 (diff)
downloadpyopenssl-6b69c55372a390ca350fd6d2749452ffe3f55049.tar.gz
Convert test_rand to use pytest-style tests (#563)
Fix up the assert helpers, subclass form `object` rather than test case, and use parametrization where appropriate. One helper method on the original `TestCase` was the ability to create temporary directories that were cleaned up at the end of the test -- now we use a pytest fixture instead: http://doc.pytest.org/en/latest/tmpdir.html Addresses #340.
Diffstat (limited to 'src/OpenSSL/rand.py')
-rw-r--r--src/OpenSSL/rand.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OpenSSL/rand.py b/src/OpenSSL/rand.py
index cce1327..a22f9e5 100644
--- a/src/OpenSSL/rand.py
+++ b/src/OpenSSL/rand.py
@@ -107,7 +107,7 @@ def status():
"""
Check whether the PRNG has been seeded with enough data.
- :return: :obj:`True` if the PRNG is seeded enough, :obj:`False` otherwise.
+ :return: 1 if the PRNG is seeded enough, 0 otherwise.
"""
return _lib.RAND_status()