p≡p for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
765 B

# -*- coding: utf-8 -*-
# This file is under GNU Affero General Public License 3.0
# see LICENSE.txt
# from . import constants
import pytest
# @pytest.mark.skip()
# def test_basic():
# import pEp
# me = pEp.Identity("alice.smith@peptest.ch", "Alice Smith", "23")
# me.username
# 'Alice Smith'
# print(me)
# Alice Smith <alice.smith@peptest.ch>
# you = pEp.Identity("bob.bourne@peptest.ch", "Bob Bourne", "42")
# print(you)
# Bob Bourne <bob.bourne@peptest.ch>
# m = pEp.outgoing_message(me)
# m.to = [you]
# m.shortmsg = "let's meet next week"
# m.longmsg = "Please call me back"
# m2 = m.encrypt()
# print(m2)
# m3, keys, rating, flags = m2.decrypt()
# assert(rating == pEp.rating.reliable)