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)
def test_seed(self): """ L{OpenSSL.rand.seed} adds entropy to the PRNG. """ rand.seed('milk shake')
def test_seed(self): """ :py:obj:`OpenSSL.rand.seed` adds entropy to the PRNG. """ rand.seed(b('milk shake'))
def test_seed(self): """ L{OpenSSL.rand.seed} adds entropy to the PRNG. """ rand.seed(b('milk shake'))
def test_seed(self): """ `OpenSSL.rand.seed` adds entropy to the PRNG. """ rand.seed(b'milk shake')
def test_seed(self): """ `OpenSSL.rand.seed` adds entropy to the PRNG. """ rand.seed(b"milk shake")