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