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

  1. # -*- coding: utf-8 -*-
  2. # This file is under GNU Affero General Public License 3.0
  3. # see LICENSE.txt
  4. # from . import constants
  5. import pytest
  6. # @pytest.mark.skip()
  7. # def test_basic():
  8. # import pEp
  9. # me = pEp.Identity("alice.smith@peptest.ch", "Alice Smith", "23")
  10. # me.username
  11. # 'Alice Smith'
  12. # print(me)
  13. # Alice Smith <alice.smith@peptest.ch>
  14. # you = pEp.Identity("bob.bourne@peptest.ch", "Bob Bourne", "42")
  15. # print(you)
  16. # Bob Bourne <bob.bourne@peptest.ch>
  17. # m = pEp.outgoing_message(me)
  18. # m.to = [you]
  19. # m.shortmsg = "let's meet next week"
  20. # m.longmsg = "Please call me back"
  21. # m2 = m.encrypt()
  22. # print(m2)
  23. # m3, keys, rating, flags = m2.decrypt()
  24. # assert(rating == pEp.rating.reliable)