/usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2/test_security_group.pyc (5543B)
Ñò
;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 Z
d Z d Z h e
d 6e d 6e d 6e i
d
6Z d e i f d „ ƒ YZ d
e i f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿN( t security_group( t fakest 11s wide-opens nothing but nett idt namet descriptiont tenant_idt FakeSecurityGroupResourcec B s e Z d „ Z RS( c C s h d d 6S( Nt valuet property( ( t self( ( sd /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group.pyt get_keys% s ( t __name__t
__module__R ( ( ( sd /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group.pyR # s t TestSecurityGroupc B s e Z d „ Z RS( c C s© t t | ƒ i ƒ t i ƒ | _ t i d h ƒ | i _ | i | i
i i _
| i i ƒ t i ƒ | _ t i d h ƒ | i _ | i | i
i i _ | i i ƒ d S( N( t superR t setUpt mockt Mockt secgroups_mockR t FakeResourcet Nonet resource_classt appt client_managert computet security_groupst
reset_mockt
projects_mockt identityt projects( R
( ( sd /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group.pyR + s
( R R
R ( ( ( sd /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group.pyR ) s t TestSecurityGroupCreatec B s# e Z d „ Z d „ Z d „ Z RS( c C sV t t | ƒ i ƒ t d t i t ƒ d t ƒ| i i
_ t i
| i d ƒ | _ d S( Nt loaded( R R R R R t copyt deepcopyt SECURITY_GROUPt TrueR t createt return_valueR t CreateSecurityGroupR t cmd( R
( ( sd /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group.pyR ; s c C s t g } d t f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i t t ƒ d } | i | | ƒ t t t t
i f } | i | | ƒ d S( NR R R R ( s descriptions ids nameR ( t security_group_namet check_parserR( t take_actionR R% t assert_called_witht assertEqualt security_group_descriptiont security_group_idt identity_fakest
project_id( R
t arglistt
verifylistt parsed_argst columnst datat collistt datalist( ( sd /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group.pyt% test_security_group_create_no_optionsG s" c C s¬ t d t g } d t f d t f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i t t ƒ d } | i | | ƒ t t t t
i f } | i | | ƒ d S( Ns
--descriptionR R R R ( s descriptions ids names tenant_id( R) R. R* R( R+ R R% R, R- R/ R0 R1 ( R
R2 R3 R4 R5 R6 R7 R8 ( ( sd /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group.pyt&