/usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2/test_keypair.pyc (7557B)
Ñò
þWc @ s± d d k 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 S( iÿÿÿÿN( t keypair( t fakes( t utilst TestKeypairc B s e Z d „ Z RS( c C s9 t t | ƒ i ƒ | i i i i | _ | i i ƒ d S( N( t superR t setUpt appt client_managert computet keypairst
keypairs_mockt
reset_mock( t self( ( s] /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_keypair.pyR s ( t __name__t
__module__R ( ( ( s] /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_keypair.pyR s t TestKeypairCreatec B s2 e Z e i i ƒ Z d „ Z d „ Z d „ Z RS( c C sn t t | ƒ i ƒ d | _ | i i | i i | i i f | _ t i | i
d ƒ | _ | i | i
i _ d S( Nt fingerprintt namet user_id( s fingerprints names user_id( R R R t columnsR R R R t datat
CreateKeypairR t Nonet cmdR
t createt return_value( R ( ( s] /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_keypair.pyR % s c C s— | i i g } d | i i f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i | i i d d ƒ| i h | ƒ | i h | ƒ d S( NR t
public_key(
R R t check_parserR t take_actionR
R t assert_called_withR t assertEqual( R t arglistt
verifylistt parsed_argsR R ( ( s] /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_keypair.pyt test_key_pair_create_no_options8 s c C sb t i i d t ƒ | _ | i | i i _ | i i | i i | i i
f | _ d | i i | i i g } d | i i f d | i i f g } | i
| i | | ƒ } t i d ƒ i i ƒ } zš | ~ } t i ƒ | _ | i i i } d | i _ | i i | ƒ \ } } | i i i | i i d | i i ƒ| i | i | ƒ | i | i | ƒ Wd QXd S( Nt no_pris --public-keyR R s io.opent dummy( t
compute_fakest FakeKeypairt create_one_keypairt TrueR R
R R R R R R R R R t mockt patcht __exit__t __enter__t MagicMockt readR R R R ( R R R R! t _[1]t mock_opent m_fileR R ( ( s] /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_keypair.pyt test_keypair_create_public_keyL s* &
( R
R R% R&