/usr/lib/python2.6/site-packages/openstackclient/tests/network/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/network/v2/test_router.pyc (19811B)
Ñò
þWc @ s? 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 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 e
f d „ ƒ YZ d S( iÿÿÿÿN( t
exceptions( t utils( t router( t fakest
TestRouterc 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( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyR s ( t __name__t
__module__R ( ( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyR s t TestAddPortToRouterc B sW e Z d Z e i i ƒ Z e i i d h e i d 6ƒ Z
d „ Z d „ Z d „ Z
RS( s Add port to Router t attrst portc C sz t t | ƒ i ƒ t i ƒ | i _ t i | i | i
ƒ | _ t i d | i ƒ | i _
t i d | i ƒ | i _ d S( Nt return_value( R R
R t mockt MockR t router_add_interfaceR t AddPortToRouterR t namespacet cmdt _routert find_routert _portt find_port( R
( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyR ' 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( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyt test_add_port_no_option. s c C s | i i | i i g } d | i i f d | i i f g } | i | i | | ƒ } | i i | ƒ } | i i i | i h | i i d 6 | i | ƒ d S( NR R t port_id(
R t idR R R t take_actionR R t assert_called_witht assertIsNone( R
R R t parsed_argst result( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyt test_add_port_required_options6 s ( R R t __doc__t
network_fakest FakePortt create_one_portR t
FakeRoutert create_one_routerR# R R R! R) ( ( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyR
s t TestAddSubnetToRouterc B sW e Z d Z e i i ƒ Z e i i d h e i d 6ƒ Z
d „ Z d „ Z d „ Z
RS( s Add subnet to Router R t subnetc C sz t t | ƒ i ƒ t i ƒ | i _ t i | i | i
ƒ | _ t i d | i ƒ | i _
t i d | i ƒ | i _ d S( NR ( R R0 R R R R R R t AddSubnetToRouterR R R R R t _subnett find_subnet( R
( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyR P s
c C s2 g } g } | i t i | i | i | | ƒ d S( N( R R R R R ( R
R R ( ( s\ /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_router.pyt test_add_subnet_no_optionW s c C s | i i | i i g } d | i i f d | i i f g } | i | i | | ƒ } | i i | ƒ } | i i i | i h | i i d 6 | i | ƒ d S( NR R1 t subnet_id(
R R# R1 R R R$ R R R% R&