/usr/lib/python2.6/site-packages/openstackclient/tests/network/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/network/v2/test_security_group_rule.pyc (26396B)
Ñò
þWc @ sn 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 d k l Z d d k
l Z d d k
l Z d e i f d „ ƒ YZ 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 e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿN( t utils( t security_group_rule( t fakest TestSecurityGroupRuleNetworkc B s e Z d „ Z RS( c C s) t t | ƒ i ƒ | i i i | _ d S( N( t superR t setUpt appt client_managert network( t self( ( si /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_security_group_rule.pyR s ( t __name__t
__module__R ( ( ( si /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_security_group_rule.pyR s t TestSecurityGroupRuleComputec B s e Z d „ Z RS( c C s) t t | ƒ i ƒ | i i i | _ d S( N( R R R R R t compute( R ( ( si /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_security_group_rule.pyR % s ( R
R R ( ( ( si /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_security_group_rule.pyR # s t" TestCreateSecurityGroupRuleNetworkc
B s† e Z d Z e i i ƒ Z d Z d Z d d
„ Z
d „ Z d „ Z d
„ Z
d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( t directiont ethertypet idt port_range_maxt port_range_mint
project_idt protocolt remote_group_idt remote_ip_prefixt security_group_idc
C s— t i i | ƒ | _ t i d | i ƒ | i _ | i i | i i | i i
| i i | i i | i i
| i i | i i | i i | i i f
| _ d S( Nt return_value( t
network_fakest FakeSecurityGroupRulet create_one_security_group_rulet _security_group_rulet mockt MockR t create_security_group_ruleR R R R R R R R R R t
expected_data( R t attrs( ( si /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_security_group_rule.pyt _setup_security_group_ruleD s c C s t t | ƒ i ƒ t i d | i ƒ | i _ t i d t
i d t
i ƒ } | | i
i _ | i
i i | _ | i i | _ t
i d t i t i ƒ d t ƒ| i i _ | i i | _ t
i d t i t i ƒ d t ƒ| i i _ t i | i
| i ƒ | _ d S( NR t endpointt tokent loaded(! R R R R R t _security_groupR t find_security_groupt identity_fakest FakeIdentityv3ClientR t AUTH_URLt
AUTH_TOKENR R t identityt projectst
projects_mockt FakeResourcet Nonet copyt deepcopyt PROJECTt Truet getR t domainst domains_mockt DOMAINR t CreateSecurityGroupRulet namespacet cmd( R t identity_client( ( si /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_security_group_rule.pyR W s( c C s&