From 6b69c55372a390ca350fd6d2749452ffe3f55049 Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Mon, 24 Oct 2016 16:34:41 +0100 Subject: 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. --- src/OpenSSL/rand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/OpenSSL/rand.py') 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() -- cgit v1.2.1