/usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2/test_security_group_rule.pyc (7536B)
Ñò
;vVc @ sO 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 d Z
h e
d 6e d 6e d
6e i d 6Z h e
d 6h d 6d
d 6d d 6e
d 6d d 6d d 6Z h e
d 6h d 6d d 6d d 6e
d 6d d 6d d 6Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿN( t security_group( t fakest 11s wide-opens nothing but nett 1t idt namet descriptiont tenant_idt groupt tcpt ip_protocols 0.0.0.0/0t ip_ranget parent_group_idi t from_portt to_portt icmpt FakeSecurityGroupRuleResourcec B s e Z d „ Z RS( c C s h d d 6S( Nt valuet property( ( t self( ( si /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group_rule.pyt get_keys; s ( t __name__t
__module__R ( ( ( si /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group_rule.pyR 9 s t TestSecurityGroupRulec 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
sg_rules_mockt security_group_rules( R ( ( si /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group_rule.pyR A s
( R R R ( ( ( si /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group_rule.pyR ? s t TestSecurityGroupRuleCreatec B s> e Z d „ Z d „ Z d „ 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 gett return_valueR t CreateSecurityGroupRuleR t cmd( R ( ( si /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group_rule.pyR R s c C sÐ t d t i t ƒ d t ƒ| i i _ t g } d t f g } | i
| i | | ƒ } | i i | ƒ \ } } | i i i
t d d d d ƒ d
} | i | | ƒ h t d d t d f } | i | | ƒ d S( NR( R R i s 0.0.0.0/0R R
R R t
port_ranget s 0:0( s groups idR
R R R1 ( R R R) R* t SECURITY_GROUP_RULER, R% t createR. t security_group_namet check_parserR0 t take_actiont assert_called_witht security_group_idt assertEqualt security_group_rule_id( R t arglistt
verifylistt parsed_argst columnst datat collistt datalist( ( si /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/compute/v2/test_security_group_rule.pyt* test_security_group_rule_create_no_options^ s8 c C sù t i t ƒ } d | d