def test_encrypt_decrypt_pubkey(self):
     key = Key(os.path.join(TEST_ROOT, 'client.pem'))
     pubkey = Key(os.path.join(TEST_ROOT, 'client_pub.pem'))
     msg = 'Test string!'
     self.assertEqual(pubkey.public_decrypt(key.private_encrypt(msg)), msg)