Example #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)
Example #2
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)
 def test_seed(self):
     """
     L{OpenSSL.rand.seed} adds entropy to the PRNG.
     """
     rand.seed('milk shake')
Example #4
0
 def test_seed(self):
     """
     :py:obj:`OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b('milk shake'))
Example #5
0
 def test_seed(self):
     """
     L{OpenSSL.rand.seed} adds entropy to the PRNG.
     """
     rand.seed(b('milk shake'))
Example #6
0
 def test_seed(self):
     """
     `OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b'milk shake')
Example #7
0
 def test_seed(self):
     """
     `OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b"milk shake")
Example #8
0
 def test_seed(self):
     """
     :py:obj:`OpenSSL.rand.seed` adds entropy to the PRNG.
     """
     rand.seed(b('milk shake'))