def test_get_contains_key_should_not_be_found(self): wallet = Wallet("fakepath", to_aes_key("123"), True) wallet.CreateKey() keypair = KeyPair(priv_key=self.pk) self.assertFalse(wallet.ContainsKey(keypair.PublicKey))
def test_get_contains_key_should_be_found(self): wallet = Wallet("fakepath", to_aes_key("123"), True) wallet.CreateKey() keypair = wallet.GetKeys()[0] self.assertTrue(wallet.ContainsKey(keypair.PublicKey))