def test_random_seeds(self): iters = 10 m = mnemonic.Mnemonic(lang='en') for _ in range(iters): seed = m.make_seed() i = m.mnemonic_decode(seed) self.assertEquals(m.mnemonic_encode(i), seed)
def test_random_seeds(self): iters = 10 m = mnemonic.Mnemonic(lang='en') for _ in range(iters): seed = m.make_seed() self.assertTrue(m.check_seed(seed, custom_entropy=1)) i = m.mnemonic_decode(seed) self.assertEquals(m.mnemonic_encode(i), seed)