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