/usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/loading
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/loading/test_session.pyc (5508B)
Ñò
DVc
@ sž d d k Z d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k
l Z d e i f d „ ƒ YZ
d e i f d
„ ƒ YZ d S( iÿÿÿÿN( t cfg( t fixture( t matchers( t loading( t utilst ConfLoadingTestsc B sM e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( t sessiongroupc C sH t t | ƒ i ƒ | i t i ƒ ƒ | _ t i | i i | i
ƒ d S( N( t superR t setUpt
useFixturet configt Configt conf_fixtureR t register_session_conf_optionst conft GROUP( t self( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR s c K s! | i | d <| i i | d S( Nt group( R R R
( R t kwargs( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR
# s
c K s t i | i i | i | S( N( R t load_session_from_conf_optionsR R R ( R R ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyt get_session' s c C sI | i d t d d ƒ | i ƒ } | i | i ƒ | i d | i ƒ d S( Nt insecuret timeouti ( R
t TrueR t assertFalset verifyt assertEqualR ( R t s( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyt test_insecure_timeout, s c C s[ d } d } | i d | d | ƒ | i ƒ } | i | i ƒ | i | | f | i ƒ d S( Ns /path/to/certfiles /path/to/keyfilet certfilet keyfile( R
R t
assertTrueR R t cert( R R t keyR ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyt test_client_certs3 s c C s9 d } | i d | ƒ | i ƒ } | i | | i ƒ d S( Ns /path/to/cacertt cafile( R
R R R ( R R# R ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyt test_cacert= s c C sµ d „ } d d d d d g } t g } | D] } | | | ƒ g f q, ~ ƒ } t i d | ƒ } | i | t i t | ƒ ƒ ƒ x, | D]$ } | i | | i d | i ƒ q‰ Wd S( Nc S s% t i t i ƒ i d t i ƒ i ƒS( NR ( R t
DeprecatedOptt uuidt uuid4t hex( ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyt new_deprecatedF s R# R R R R t deprecated_optsi (
t dictR t get_session_conf_optionst
assertThatR t HasLengtht lent assertInt nameR* ( R R) t opt_namest _[1]t nt deprt optst opt( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyt test_deprecatedE s 3 (
t __name__t
__module__R R R
R R R" R$ R8 ( ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR s
t CliLoadingTestsc B s5 e Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s6 t t | ƒ i ƒ t i ƒ | _ t i | i ƒ d S( N( R R; R t argparset ArgumentParsert parserR t# register_session_argparse_arguments( R ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR T s c K s( | i i | i ƒ ƒ } t i | | S( N( R> t
parse_argst splitR t$ load_session_from_argparse_arguments( R t valR t args( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR Z s c C s6 | i d ƒ } | i | i ƒ | i d | i ƒ d S( Ns --insecure --timeout 5.5g @( R R R R R ( R R ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR ^ s c C sR d } d } | i d | | f ƒ } | i | i ƒ | i | | f | i ƒ d S( Ns /path/to/certfiles /path/to/keyfiles --os-cert %s --os-key %s( R R R R R ( R R R! R ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR" d s
c C s0 d } | i d | ƒ } | i | | i ƒ d S( Ns /path/to/cacerts --os-cacert %s( R R R ( R t cacertR ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR$ m s ( R9 R: R R R R" R$ ( ( ( sT /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/loading/test_session.pyR; R s
( R<