Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/pyskein-1.0/test/test_skein.py   pyskein(Download)
    def testPRNGRandomStream(self):
        for i in range(0, 5000, 13):
            r = skein.Random(b"abc")
            self.assertEqual(r.read(i)+r.read(5000-i),
                             skein.Random(b"abc").read(5000))

src/p/a/passacre-HEAD/passacre/test/test_generator.py   passacre(Download)
    s2 = r1.read(2)
    r2 = skein.Random(b'123')
    assert s1 + s2 != r2.read(4)
    with pytest.raises(ValueError):
        r1.getrandbits(0)

src/p/a/passacre-0.13.0.1b5/passacre/test/test_generator.py   passacre(Download)
    s2 = r1.read(2)
    r2 = skein.Random(b'123')
    assert s1 + s2 != r2.read(4)
    with pytest.raises(ValueError):
        r1.getrandbits(0)