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