/usr/lib/python2.6/site-packages/cinderclient/tests/functional
Edit: /usr/lib/python2.6/site-packages/cinderclient/tests/functional/test_cli.pyc (3094B)
Ñò
=vVc @ s- d d k l Z d e i f d YZ d S( i˙˙˙˙( t baset CinderClientTestsc B s; e Z d Z d Z d Z d Z d Z d Z RS( sF Basic test for cinder client.
Check of base cinder commands.
c C sK | i d d } | i | i | i | d | i | d d S( s! Create and delete a volume by ID.t paramst 1t idN( t
volume_createt assert_volume_detailst keyst
volume_deletet check_volume_deleted( t selft volume( ( sS /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/functional/test_cli.pyt test_volume_create_delete_id s c C s: | i d d } | i d d d | i | d d S( s# Create and delete a volume by name.R s 1 --name TestVolumeNamedCreatet deletet TestVolumeNamedCreateR N( R t cinderR ( R
R ( ( sS /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/functional/test_cli.pyt test_volume_create_delete_name s c C s | i d d } | i d d d } | i | } | i d | d | i | i | i | d | i | d d S( s Show volume details.R s 1 --name TestVolumeShowt showt TestVolumeShowt nameR N( R R t _get_property_from_outputt assertEqualR R R R ( R
R t output( ( sS /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/functional/test_cli.pyt test_volume_show$ s c C sİ | i d d } | i d d d | d d f | i | d d | i d d | d } | i | } | i d | d
| i | d | i | d d S( s Extend a volume size.R s 1 --name TestVolumeExtendt extends %s %sR i t availableR t 2t sizeN( R R t wait_for_volume_statusR R R R ( R
R R ( ( sS /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/functional/test_cli.pyt test_volume_extend/ s !c C s | i d d } | i | d } | i | i | i | d | i | d | i | d | i | d d S( s) Create a volume snapshot and then delete.R R R N( R t snapshot_createt assert_snapshot_detailsR t snapshot_deletet check_snapshot_deletedR R ( R
R t snapshot( ( sS /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/functional/test_cli.pyt test_snapshot_create_and_delete; s ( t __name__t
__module__t __doc__R R R R R# ( ( ( sS /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/functional/test_cli.pyR s N( t cinderclient.tests.functionalR t ClientTestBaseR ( ( ( sS /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/functional/test_cli.pyt
s