Skip to content

Commit 1891593

Browse files
author
mx
committed
test(wallet): is able to crypt/decrypt a message
1 parent d022b00 commit 1891593

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test_wallet.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from wallet import Wallet
2+
3+
w = Wallet()
4+
5+
6+
def test_decrypt():
7+
msg = b"hello world!"
8+
crypted = w.crypt(b"hello world!")
9+
original = w.decrypt(crypted)
10+
11+
assert msg == original

0 commit comments

Comments
 (0)