/usr/lib/python2.6/site-packages/openstackclient/tests/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/identity/v3/test_project.pyc (22046B)
Ñò
;vVc @ 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 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
exceptions( t project( t fakest TestProjectc B s e Z d „ Z RS( c C s[ t t | ƒ i ƒ | i i i i | _ | i i ƒ | i i i i | _
| i
i ƒ d S( N( t superR t setUpt appt client_managert identityt domainst domains_mockt
reset_mockt projectst
projects_mock( t self( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_project.pyR s
( t __name__t
__module__R ( ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_project.pyR s t TestProjectCreatec B sb e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ 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
ƒ| i i _
t i | i d ƒ | _ d S( Nt loaded( R R R R t FakeResourcet Nonet copyt deepcopyt identity_fakest DOMAINt TrueR
t gett return_valuet PROJECTR
t createR t
CreateProjectR t cmd( R ( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_project.pyR ) s c C sí t i g } d
d t f d t f d t i f g } | i | i | | ƒ } | i i | ƒ \ } } h t i d 6d d 6d d 6t d 6d d 6} | i i i
| d } | i | | ƒ t i t i
t t i t i f } | i | | ƒ d S( Nt parentt enablet disablet namet domaint descriptiont enabledt domain_idt id( s parentN( s descriptions domain_ids enableds ids name( R t project_nameR t Falset check_parserR t take_actionR R
R t assert_called_witht assertEqualt project_descriptionR' t
project_id( R t arglistt
verifylistt parsed_argst columnst datat kwargst collistt datalist( ( s^ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/identity/v3/test_project.pyt test_project_create_no_options; s.
c C sö d d t i g } d d t f d t f d t i f d
g } | i | i | | ƒ } | i i | ƒ \ } } h t i d 6d d 6d d 6t d 6d d 6} | i i i
| d } | i | | ƒ t i t i
t t i t i f } | i | | ƒ d S( Ns
--descriptions new descR% R! R" R# R R$ R&