/usr/lib/python2.6/site-packages/openstackclient/tests/identity/v2_0
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/identity/v2_0/test_token.pyc (3330B)
Ñò
;vVc @ su d d k Z d d k l Z d d k l Z d e i f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S(
iÿÿÿÿN( t token( t fakest TestTokenc B s e Z d „ Z RS( c C sP t t | ƒ i ƒ t i ƒ | _ t i ƒ | i i _ | i | i i i _ d S( N(
t superR t setUpt mockt Mockt sc_mockt appt client_managert auth_reft service_catalog( t self( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyR s ( t __name__t
__module__R ( ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyR s t TestTokenIssuec B s e Z d „ Z d „ Z RS( c C sA t t | ƒ i ƒ t i | i i _ t i | i
d ƒ | _ d S( N(
R R R t identity_fakest TOKENR t get_tokent return_valueR t
IssueTokenR t Nonet cmd( R ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyR # s c C s” g } g } | i | i | | ƒ } | i i | ƒ \ } } | i i i ƒ d } | i | | ƒ t i t i t i
t i f } | i | | ƒ d S( Nt expirest idt
project_idt user_id( s expiress ids
project_ids user_id( t check_parserR t take_actionR R t assert_called_witht assertEqualR t
token_expirest token_idR R ( R t arglistt
verifylistt parsed_argst columnst datat collistt datalist( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyt test_token_issue) s ( R
R R R( ( ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyR ! s t TestTokenRevokec B s e Z d Z d „ Z d „ Z RS( t fobc C s` t t | ƒ i ƒ | i i i i | _ | i i ƒ t | i i
_ t i
| i d ƒ | _ d S( N( R R) R R R t identityt tokenst tokens_mockt
reset_mockt Truet deleteR R t RevokeTokenR R ( R ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyR B s
c C s` | i g } d | i f g } | i | i | | ƒ } | i i | ƒ | i i i | i ƒ d S( NR ( R R R R R- R0 R ( R R! R" R# ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyt test_token_revokeI s
( R
R R R R2 ( ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyR) > s (
R t openstackclient.identity.v2_0R t# openstackclient.tests.identity.v2_0R R t TestIdentityv2R R R) ( ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v2_0/test_token.pyt
s