예제 #1
0
 def test_status(self):
     """
     L{OpenSSL.rand.status} returns C{True} if the PRNG has sufficient
     entropy, C{False} otherwise.
     """
     # It's hard to know what it is actually going to return.  Different
     # OpenSSL random engines decide differently whether they have enough
     # entropy or not.
     self.assertTrue(rand.status() in (1, 2))
예제 #2
0
 def test_status(self):
     """
     :py:obj:`OpenSSL.rand.status` returns :py:obj:`True` if the PRNG has sufficient
     entropy, :py:obj:`False` otherwise.
     """
     # It's hard to know what it is actually going to return.  Different
     # OpenSSL random engines decide differently whether they have enough
     # entropy or not.
     self.assertTrue(rand.status() in (1, 2))
예제 #3
0
 def test_status(self):
     """
     `OpenSSL.rand.status` returns `1` if the PRNG has sufficient entropy,
     `0` otherwise.
     """
     # It's hard to know what it is actually going to return.  Different
     # OpenSSL random engines decide differently whether they have enough
     # entropy or not.
     assert rand.status() in (0, 1)
예제 #4
0
파일: test_rand.py 프로젝트: pyca/pyopenssl
 def test_status(self):
     """
     `OpenSSL.rand.status` returns `1` if the PRNG has sufficient entropy,
     `0` otherwise.
     """
     # It's hard to know what it is actually going to return.  Different
     # OpenSSL random engines decide differently whether they have enough
     # entropy or not.
     assert rand.status() in (0, 1)
예제 #5
0
 def test_status(self):
     """
     `OpenSSL.rand.status` returns `1` if the PRNG has sufficient entropy,
     `0` otherwise.
     """
     assert rand.status() == 1
예제 #6
0
 def test_status(self):
     """
     `OpenSSL.rand.status` returns `1` if the PRNG has sufficient entropy,
     `0` otherwise.
     """
     assert rand.status() == 1