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

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

src/x/o/xoutil-1.5.4/tests/test_bases.py   xoutil(Download)
import random
 
from xoutil.bases import B32, B64
 
__author__ = "Manuel Vázquez Acosta <mva.led@gmail.com>"
    def test_many_random_convertions(self):
        subjects = [B32, B64]
        for _ in range(5):
            testcase = random.randrange(0, 2**128)
            subject = random.choice(subjects)