/usr/lib/python2.6/site-packages/openstackclient/tests/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/identity/v3/test_protocol.pyc (7419B)
Ñò
;vVc @ sÇ d d k Z d d k l 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
e f d „ ƒ YZ d e f d
„ ƒ YZ d e f d „ ƒ YZ
d S( iÿÿÿÿN( t federation_protocol( t fakest TestProtocolc B s e Z d „ Z RS( c C sB t t | ƒ i ƒ | i i i i } | i | _ | i i ƒ d S( N(
t superR t setUpt appt client_managert identityt
federationt protocolst protocols_mockt
reset_mock( t selft federation_lib( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.pyR s ( t __name__t
__module__R ( ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.pyR s t TestProtocolCreatec B s e Z d „ Z d „ Z RS( c C sh t t | ƒ i ƒ t i t i ƒ } t i d | d t
ƒ} | | i i _
t i | i d ƒ | _ d S( Nt loaded( R R R t copyt deepcopyt identity_fakest PROTOCOL_OUTPUTR t FakeResourcet Nonet TrueR
t createt return_valueR t CreateProtocolR t cmd( R t protot resource( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.pyR " s
c C så t i d t i d t i g } d t i f d t i f d t i f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i d t i d t i d t i ƒ d } | i
| | ƒ t i t i t i f } | i
| | ƒ d S( Ns --identity-providers --mappingR t identity_providert mappingt protocol_idt id( s ids identity_providers mapping( R R! t idp_idt
mapping_idt check_parserR t take_actionR
R t assert_called_witht assertEqual( R t argslistt
verifylistt parsed_argst columnst datat collistt datalist( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.pyt test_create_protocol* s$
( R R R R0 ( ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.pyR s t TestProtocolDeletec B s e Z d „ Z d „ Z RS( c C sk t t | ƒ i ƒ t i d t i t i ƒ d t
ƒ| i i _
d | i i _
t i | i d ƒ | _ d S( NR ( R R1 R R R R R R R R R R
t getR t deleteR t DeleteProtocolR R ( R ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.pyR H s c C s{ d t i t i g } d t i f d t i f g } | i | i | | ƒ } | i i | ƒ | i i i t i t i ƒ d S( Ns --identity-providerR R ( R R# R! R% R R&