Add missing capsule doctest

pull/173/head
Kieran Prasch 2018-06-27 13:25:31 -07:00
parent 43cc291830
commit 6e02037dcc
1 changed files with 7 additions and 0 deletions

View File

@ -163,6 +163,13 @@ Bob fails to open the capsule
If Bob attempts to open a capsule that was not encrypted for his public key,
or re-encrypted for him by Ursula, he will not be able to open it.
.. doctest::
>>> fail = pre.decrypt(ciphertext=ciphertext, capsule=capsule, decrypting_key=bobs_private_key)
Traceback (most recent call last):
...
cryptography.exceptions.InvalidTag
.. code-block:: python