/usr/lib/python2.6/site-packages/openstackclient/tests/api
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/api/test_image_v2.pyc (3158B)
Ńň
;vVc @ s
d 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 e i f d YZ d
e f d YZ
d S(
s Image v2 API Library Testsi˙˙˙˙( t fixture( t session( t image_v2( t utilst xyzpdqs http://gopher.comt TestImageAPIv2c B s e Z d Z RS( c C sV t t | i t i } t i d | d t | _ | i t
i | _ d S( NR t endpoint(
t superR t setUpR t SessionR t APIv2t FAKE_URLt apit
useFixtureR t Fixturet
requests_mock( t selft sess( ( sW /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/api/test_image_v2.pyR s ( t __name__t
__module__R ( ( ( sW /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/api/test_image_v2.pyR s t TestImagec B s˝ e Z h d d 6d d 6d d 6e d 6Z h d d 6d d 6d d 6e d 6Z h d d 6d
d 6d d 6e d 6Z h d d 6d
d 6d d 6e d 6Z e e e e g Z d Z d Z
d Z RS( t 1t idt pub1t namet publict
visibilityt protectedt 2s pub2-noprott 3t priv3t privatet 4s priv4-noprotc C sS | i i d t d d h | i d 6d d | i i } | i | i | d S( Nt GETs
/v2/imagest jsont imagest status_codeiČ ( R t register_uriR t LIST_IMAGE_RESPR t
image_listt assertEqual( R t ret( ( sW /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/api/test_image_v2.pyt test_image_list_no_optionsF s
c C sk | i i d t d d h | i | i g d 6d d | i i d t } | i | i | i g | d S( NR! s
/v2/imagesR" R# R$ iČ R ( R R% R t PUB_PROTt
PUB_NOPROTR R' t TrueR( ( R R) ( ( sW /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/api/test_image_v2.pyt test_image_list_publicP s
c C sk | i i d t d d h | i | i g d 6d d | i i d t } | i | i | i g | d S( NR! s
/v2/imagesR" R# R$ iČ R ( R R% R t
NOPUB_PROTt NOPUB_NOPROTR R' R- R( ( R R) ( ( sW /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/api/test_image_v2.pyt test_image_list_privateZ s
( R R R- R+ t FalseR, R/ R0 R&