diff --git a/test/test_crypto.py b/test/test_crypto.py index f924220..cf55691 100644 --- a/test/test_crypto.py +++ b/test/test_crypto.py @@ -3,7 +3,11 @@ from pbc_client.pbc_types import Address def test_sender_authentication(): sender_authentication = SenderAuthentication('aa') - assert sender_authentication.sender_address() == Address.from_string('00e72e44eab933faaf1fd4ce94bb57e08bff98a1ed') + assert str(sender_authentication.sender_address()) == '00e72e44eab933faaf1fd4ce94bb57e08bff98a1ed' + +def test_sender_authentication_2(): + sender_authentication = SenderAuthentication('2') + assert str(sender_authentication.sender_address()) =='00b2e734b5d8da089318d0d2b076c19f59c450855a' def test_sign(): sender_authentication = SenderAuthentication('01')