Ejemplo n.º 1
0
 def test_base36(self):
     """Test conversion to/from base 36"""
     numlist = [0, 1, 10, 1313, 34233, 872338, 2342889,
                134242234, 1204684368, 34972382455]
     for n in numlist:
         b = file_naming.to_base36(n)
         assert file_naming.from_base36(b) == n, (b, n)
Ejemplo n.º 2
0
 def test_base36(self):
     u"""Test conversion to/from base 36"""
     numlist = [0, 1, 10, 1313, 34233, 872338, 2342889,
                134242234, 1204684368, 34972382455]
     for n in numlist:
         b = file_naming.to_base36(n)
         assert file_naming.from_base36(b) == n, (b, n)