예제 #1
0
 def test_seed_wrong_args(self, args):
     """
     `OpenSSL.rand.seed` raises `TypeError` if called with
     a non-`str` argument.
     """
     with pytest.raises(TypeError):
         rand.seed(*args)
예제 #2
0
파일: test_rand.py 프로젝트: pyca/pyopenssl
 def test_seed_wrong_args(self, args):
     """
     `OpenSSL.rand.seed` raises `TypeError` if called with
     a non-`str` argument.
     """
     with pytest.raises(TypeError):
         rand.seed(*args)
예제 #3
0
 def test_seed(self):
     """
     L{OpenSSL.rand.seed} adds entropy to the PRNG.
     """
     rand.seed('milk shake')
예제 #4
0
 def test_seed(self):
     """
     :py:obj:`OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b('milk shake'))
예제 #5
0
 def test_seed(self):
     """
     L{OpenSSL.rand.seed} adds entropy to the PRNG.
     """
     rand.seed(b('milk shake'))
예제 #6
0
 def test_seed(self):
     """
     `OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b'milk shake')
예제 #7
0
파일: test_rand.py 프로젝트: pyca/pyopenssl
 def test_seed(self):
     """
     `OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b"milk shake")
예제 #8
0
 def test_seed(self):
     """
     :py:obj:`OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b('milk shake'))