

def test_random(self):
    tmpl = env.from_string('{{ seq|random }}')
    seq = range(100)
    for _ in range(10):
        assert (int(tmpl.render(seq=seq)) in seq)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_random/original