Exemple #1
0
 def test_add_wrong_args(self, args):
     """
     `OpenSSL.rand.add` raises `TypeError` if called with arguments not of
     type `str` and `int`.
     """
     with pytest.raises(TypeError):
         rand.add(*args)
Exemple #2
0
 def test_add_wrong_args(self, args):
     """
     `OpenSSL.rand.add` raises `TypeError` if called with arguments not of
     type `str` and `int`.
     """
     with pytest.raises(TypeError):
         rand.add(*args)
 def test_add(self):
     """
     L{OpenSSL.rand.add} adds entropy to the PRNG.
     """
     rand.add('hamburger', 3)
Exemple #4
0
 def test_add(self):
     """
     `OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b"hamburger", 3)
Exemple #5
0
 def test_add(self):
     """
     :py:obj:`OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b('hamburger'), 3)
Exemple #6
0
 def test_add(self):
     """
     L{OpenSSL.rand.add} adds entropy to the PRNG.
     """
     rand.add(b('hamburger'), 3)
Exemple #7
0
 def test_add(self):
     """
     `OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b'hamburger', 3)
Exemple #8
0
 def test_add(self):
     """
     :py:obj:`OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b('hamburger'), 3)