/usr/lib/python2.6/site-packages/openstackclient/tests/network/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/network/v2/test_floating_ip.pyc (14099B)
Ñò
þWc @ s2 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 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 S( iÿÿÿÿN( t floating_ip( t fakes( t utilst TestFloatingIPNetworkc 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( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyR s ( t __name__t
__module__R ( ( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyR s t TestCreateFloatingIPNetworkc
B sÊ e Z e i i ƒ Z e i i ƒ Z e i i
ƒ Z e i i
d h e i d 6e i d 6ƒ Z d Z e i e i e i e i e i e i e i e i e i e i f
Z d „ Z d „ Z d
„ Z d „ Z RS( t attrst floating_network_idt port_idt
dns_domaint dns_namet fixed_ip_addresst floating_ip_addresst idt
project_idt router_idt statusc C sž t t | ƒ i ƒ t i d | i ƒ | i _ t i d | i ƒ | i _ t i d | i
ƒ | i _ t i d | i ƒ | i _
t i | i | i ƒ | _ d S( Nt return_value( R R R t mockt MockR R t create_ipt floating_networkt find_networkt subnett find_subnett portt find_portt CreateFloatingIPR t namespacet cmd( R ( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyR J s c C s2 g } g } | i t i | i | i | | ƒ d S( N( t assertRaisest tests_utilst ParserExceptiont check_parserR$ ( R t arglistt
verifylist( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyt test_create_no_optionsW s c C sž | i i g } d | i i f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i h | i i d 6 | i | i | ƒ | i | i
| ƒ d S( NR R ( R R R( R$ t take_actionR R t assert_called_once_witht assertEqualt columnst data( R R) R* t parsed_argsR/ R0 ( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyt test_create_default_options_ s c C s> d | i i d | i i d | i i d | i i | i i g } d | i i f d | i i f d | i i f d | i i f d | i i f g } | i | i | | ƒ } | i i | ƒ \ } } | i
i i h | i i d
6| i i d 6| i i d 6| i i d 6| i i d 6 | i
| i | ƒ | i
| i | ƒ d S(
Ns --subnets --ports --floating-ip-addresss --fixed-ip-addressR R R R R t subnet_idR R ( R R R R R R R R( R$ R, R R R- R. R/ R0 ( R R) R* R1 R/ R0 ( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyt test_create_all_optionsp s(
(
s
dns_domains dns_names fixed_ip_addresss floating_ip_addresss floating_network_ids ids port_ids
project_ids router_ids status( R
R t
network_fakest FakeNetworkt create_one_networkR t
FakeSubnett create_one_subnetR t FakePortt create_one_portR t FakeFloatingIPt create_one_floating_ipR R R/ R R R R R R R R R R0 R R+ R2 R4 ( ( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyR ! s>
t TestDeleteFloatingIPNetworkc B s) e Z e i i ƒ Z d „ Z d „ Z RS( c C se t t | ƒ i ƒ t i d d ƒ | i _ t i d | i ƒ | i _ t i
| i | i ƒ | _
d S( NR ( R R> R R R t NoneR t delete_ipR t find_ipt DeleteFloatingIPR R# R$ ( R ( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyR “ s c C sŽ | i i g } d | i i f g } | i | i | | ƒ } | i i | ƒ } | i i i | i i ƒ | i i i | i ƒ | i | ƒ d S( NR (
R R R( R$ R, R RA R- R@ t assertIsNone( R R) R* R1 t result( ( sa /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_floating_ip.pyt test_floating_ip_deleteœ s ( R
R R5 R<