/usr/lib/python2.6/site-packages/cinderclient/tests/unit/v1
Edit: /usr/lib/python2.6/site-packages/cinderclient/tests/unit/v1/test_services.pyc (4110B)
Ñò
=vVc @ sY d d k l Z d d k l Z d d k l Z e i ƒ Z d e i f d „ ƒ YZ d S( iÿÿÿÿ( t utils( t fakes( t servicest ServicesTestc B sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C sg t i i ƒ } t i d d ƒ | i d t | ƒ ƒ g } | D] } | | i | t i ƒ q@ ~ d S( Nt GETs /os-servicesi ( t csR t listt
assert_calledt assertEqualt lent assertIsInstancet Service( t selft svst _[1]t s( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt test_list_services s c C s› t i i d d ƒ } t i d d ƒ | i d t | ƒ ƒ g } | D] } | | i | t i ƒ qF ~ g } | D] } | | i d | i ƒ qt ~ d S( Nt hostt host2R s /os-services?host=host2i ( R R R R R R R
R R ( R R
R R t _[2]( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt test_list_services_with_hostname s
.c C s› t i i d d ƒ } t i d d ƒ | i d t | ƒ ƒ g } | D] } | | i | t i ƒ qF ~ g } | D] } | | i d | i ƒ qt ~ d S( Nt binarys
cinder-volumeR s! /os-services?binary=cinder-volumei ( R R R R R R R
R R ( R R
R R R ( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt test_list_services_with_binary' s
.c
C sÉ t i i d d ƒ } t i d d ƒ | i d t | ƒ ƒ g } | D] } | | i | t i ƒ qF ~ g } | D] } | | i d | i ƒ qt ~ g } | D] } | | i d | i ƒ q¢ ~ d S( NR s
cinder-volumeR s, /os-services?host=host2&binary=cinder-volumei (
R R R R R R R
R R R ( R R
R R R t _[3]( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt# test_list_services_with_host_binary. s ..c C sf t i i d d ƒ } h d d 6d d 6} t i d d | ƒ | i | t i ƒ | i d | i ƒ d S( Nt host1s
cinder-volumeR R t PUTs /os-services/enablet enabled( R R t enableR R
R R t status( R R t values( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt test_services_enable6 s
c C sf t i i d d ƒ } h d d 6d d 6} t i d d | ƒ | i | t i ƒ | i d | i ƒ d S( NR s
cinder-volumeR R R s /os-services/disablet disabled( R R t disableR R
R R R ( R R R ( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt test_services_disable= s
c C sp t i i d d d ƒ } h d d 6d d 6d d 6} t i d d | ƒ | i | t i ƒ | i d | i ƒ d S(
NR s
cinder-volumes disable bad hostR R t disabled_reasonR s /os-services/disable-log-reasonR ( R R t disable_log_reasonR R
R R R ( R R R ( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt test_services_disable_log_reasonD s
( t __name__t
__module__R R R R R R" R% ( ( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyR s N(
t cinderclient.tests.unitR t cinderclient.tests.unit.v1R t cinderclient.v1R t
FakeClientR t TestCaseR ( ( ( sU /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_services.pyt
s