Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
 def test_add(self):
     """
     L{OpenSSL.rand.add} adds entropy to the PRNG.
     """
     rand.add('hamburger', 3)
Esempio n. 4
0
 def test_add(self):
     """
     `OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b"hamburger", 3)
Esempio n. 5
0
 def test_add(self):
     """
     :py:obj:`OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b('hamburger'), 3)
Esempio n. 6
0
 def test_add(self):
     """
     L{OpenSSL.rand.add} adds entropy to the PRNG.
     """
     rand.add(b('hamburger'), 3)
Esempio n. 7
0
 def test_add(self):
     """
     `OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b'hamburger', 3)
Esempio n. 8
0
 def test_add(self):
     """
     :py:obj:`OpenSSL.rand.add` adds entropy to the PRNG.
     """
     rand.add(b('hamburger'), 3)