#NEWLINE# def test_rsa_prepare_key_should_be_idempotent( self ) : #NEWLINE# #INDENT# algo = RSAAlgorithm ( RSAAlgorithm . SHA256 ) #NEWLINE# with open ( key_path ( 'testkey_rsa.pub' ) , 'r' ) as keyfile : #NEWLINE# #INDENT# jwt_pub_key_first = algo . prepare_key ( keyfile . read ( ) ) #NEWLINE# jwt_pub_key_second = algo . prepare_key ( jwt_pub_key_first ) #NEWLINE# #UNINDENT# assert ( jwt_pub_key_first == jwt_pub_key_second )