/usr/lib/python2.6/site-packages/openstackclient/tests/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/identity/v3/test_consumer.pyc (7234B)
Ñò
;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 consumer( t fakest
TestOAuth1c 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 oauth1t consumerst consumers_mockt
reset_mock( t selft identity_client( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyR s ( t __name__t
__module__R ( ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyR s t TestConsumerCreatec B s e Z d „ Z d „ Z RS( c C s\ t t | ƒ i ƒ t i d t i t i ƒ d t
ƒ| i i _
t i | i d ƒ | _ d S( Nt loaded( R R R R t FakeResourcet Nonet copyt deepcopyt identity_fakest OAUTH_CONSUMERt TrueR
t createt return_valueR t CreateConsumerR t cmd( R ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyR s c C s© d t i g } d t i f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i t i ƒ d } | i | | ƒ t i t i t i
f } | i | | ƒ d S( Ns
--descriptiont descriptiont idt secret( s descriptions idR ( R t consumer_descriptiont check_parserR t take_actionR
R t assert_called_witht assertEqualt consumer_idt consumer_secret( R t arglistt
verifylistt parsed_argst columnst datat collistt datalist( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyt test_create_consumer* s
( R R R R. ( ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyR s t TestConsumerDeletec 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 R/ R R R R R R R R R R
t getR t deleteR t DeleteConsumerR R ( R ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyR D s c C sr t i g } d t i f g } | i | i | | ƒ } | i i | ƒ } | i d | ƒ | i i i t i ƒ d S( NR i ( R R% R! R t runR$ R
R1 R# ( R R' R( R) t result( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyt test_delete_consumerQ s ( R R R R5 ( ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyR/ B s
t TestConsumerListc B s e Z d „ Z d „ Z RS( c C sŒ t t | ƒ i ƒ t i d t i t i ƒ d t
ƒ| i i _
t i d t i t i ƒ d t
ƒg | i i _
t i | i d ƒ | _ d S( NR ( R R6 R R R R R R R R R R
R0 R t listR t ListConsumerR R ( R ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyR d s c C s‘ g } g } | i | i | | ƒ } | i i | ƒ \ } } | i i i ƒ d } | i | | ƒ t i t i f f } | i | t
| ƒ ƒ d S( Nt IDt Description( R9 s Description( R! R R" R
R7 R# R$ R R% R t tuple( R R' R( R) R* R+ R, R- ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_consumer.pyt test_consumer_listw s ( R R R R<