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