Ñò zˆJc @ sW d d k Z d d k Z d d k Z d d k l Z d e f d „ ƒ YZ d „ Z d S( iÿÿÿÿN( t GpgHomeTestCaset ContextTestCasec B sY e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s t i ƒ } d S( N( t gpgmet Context( t selft ctx( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt test_constructor s c C s¨ t i ƒ } | i | i t i ƒ t i | _ | i | i t i ƒ t i | _ | i | i t i ƒ d „ } | i t i | | d ƒ d „ } | i t | | ƒ d S( Nc S s | | _ d S( N( t protocol( R t value( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt set_protocol' s iç c S s | ` d S( N( R ( R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt del_protocol+ s ( R R t assertEqualR t PROTOCOL_OpenPGPt PROTOCOL_CMSt assertRaisest GpgmeErrort TypeError( R R R R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt test_protocol s c C sw t i ƒ } | i | i t ƒ t | _ | i | i t ƒ t | _ | i | i t ƒ d „ } | i t | | ƒ d S( Nc S s | ` d S( N( t armor( R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt del_armor7 s ( R R R R t Falset TrueR R ( R R R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt test_armor/ s c C sw t i ƒ } | i | i t ƒ t | _ | i | i t ƒ t | _ | i | i t ƒ d „ } | i t | | ƒ d S( Nc S s | ` d S( N( t textmode( R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt del_textmodeC s ( R R R R R R R R ( R R R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt test_textmode; s c C sH t i ƒ } d | _ | i | i d ƒ d „ } | i t | | ƒ d S( Ni c S s | ` d S( N( t include_certs( R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt del_include_certsP s ( R R R R R R ( R R R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt test_include_certsG s c C s” t i ƒ } | i | i t i ƒ t i | _ | i | i t i ƒ t i t i B| _ | i | i t i t i Bƒ d „ } | i t | | ƒ d S( Nc S s | ` d S( N( t keylist_mode( R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt del_keylist_mode] s ( R R R R t KEYLIST_MODE_LOCALt KEYLIST_MODE_EXTERNR R ( R R R ( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt test_keylist_modeT s c C s† t i ƒ } d „ } | i | i d ƒ | | _ | i | i | ƒ d | _ | i | i d ƒ | | _ | ` | i | i d ƒ d S( Nc S s d S( N( ( t uid_hintt passphrase_infot prev_was_badt fd( ( s> /usr/lib64/python2.6/site-packages/gpgme/tests/test_context.pyt passphrase_cbc s ( R R R R&