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