예제 #1
0
 def test_roundtrip(self):
     for i in range(1000):
         Isbn10.strip(Isbn10.protect(randint(0, 2 ** 32 - 1)))
예제 #2
0
 def check(n, z):
     print (n, z, Isbn10.protect(n))
     assert Isbn10.protect(n) == z
예제 #3
0
 def test_roundtrip(self):
     for i in range(1000):
         x = randint(0, 2 ** 32 - 1)
         print (x)
         Isbn10.strip(Isbn10.protect(x))