/usr/lib/python2.6/site-packages/novaclient/tests/unit/v2
Edit: /usr/lib/python2.6/site-packages/novaclient/tests/unit/v2/test_flavors.pyc (10988B)
Ñò
=vVc @ si 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 S( iÿÿÿÿN( t
exceptions( t utils( t fakes( t flavorst FlavorsTestc B s e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e i i e i d ƒ d „ ƒ Z RS( c C s5 t t | ƒ i ƒ | i ƒ | _ | i ƒ | _ d S( N( t superR t setUpt _get_fake_clientt cst _get_flavor_typet flavor_type( t self( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyR s c C s
t i ƒ S( N( R t
FakeClient( R ( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyR s c C s t i S( N( R t Flavor( R ( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyR ! s c C sM | i i i ƒ } | i i d d ƒ x! | D] } | i | | i ƒ q, Wd S( Nt GETs /flavors/detail( R R t listt
assert_calledt assertIsInstanceR
( R t flt flavor( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyt test_list_flavors$ s
c C sS | i i i d t ƒ } | i i d d ƒ x! | D] } | i | | i ƒ q2 Wd S( Nt detailedR s /flavors( R R R t FalseR R R
( R R R ( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyt test_list_flavors_undetailed* s
c C s3 | i i i d d d d ƒ | i i d d ƒ d S( Nt markeriÒ t limiti R s# /flavors/detail?limit=4&marker=1234( R R R R ( R ( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyt# test_list_flavors_with_marker_limit0 s c C sS | i i i d d ƒ } | i i d d ƒ x! | D] } | i | | i ƒ q2 Wd S( Nt is_publicR s /flavors/detail?is_public=None( R R R t NoneR R R
( R R R ( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyt test_list_flavors_is_public_none4 s
c C sS | i i i d t ƒ } | i i d d ƒ x! | D] } | i | | i ƒ q2 Wd S( NR R s /flavors/detail?is_public=False( R R R R R R R
( R R R ( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyt! test_list_flavors_is_public_false: s
c C sS | i i i d t ƒ } | i i d d ƒ x! | D] } | i | | i ƒ q2 Wd S( NR R s /flavors/detail( R R R t TrueR R R
( R R R ( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyt test_list_flavors_is_public_true@ s
c C sˆ | i i i d ƒ } | i i d d ƒ | i | | i ƒ | i d | i ƒ | i d | i ƒ | i d | i ƒ | i
| i ƒ d S( Ni R s
/flavors/1i i
( R R t getR R R
t assertEqualt ramt diskt ephemeralt
assertTrueR ( R t f( ( sP /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_flavors.pyt test_get_flavor_detailsF s c C sˆ | i i i d ƒ } | i i d d ƒ | i | | i ƒ | i d | i ƒ | i d | i ƒ | i d | i ƒ | i
| i ƒ d S( Nt aa1R s /flavors/aa1i€ i ( R R R! R R R
R" R# R$ R% R&