/usr/lib/python2.6/site-packages/openstackclient/tests/volume/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/volume/v2/test_snapshot.pyc (9164B)
Ñò
;vVc @ 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 e f d „ ƒ YZ
d e f d „ ƒ YZ d S( iÿÿÿÿN( t fakes( t snapshott TestSnapshotc B s e Z d „ Z RS( c C s[ t t | ƒ i ƒ | i i i i | _ | i i ƒ | i i i i | _
| i
i ƒ d S( N( t superR t setUpt appt client_managert volumet volume_snapshotst snapshots_mockt
reset_mockt volumest volumes_mock( t self( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_snapshot.pyR s
( t __name__t
__module__R ( ( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_snapshot.pyR s t TestSnapshotCreatec B s e Z d „ Z d „ Z RS( c C s‰ t t | ƒ i ƒ t i d t i t i ƒ d t
ƒ| i i _
t i d t i t i ƒ d t
ƒ| i i _
t i | i d ƒ | _ d S( Nt loaded( R R R R t FakeResourcet Nonet copyt deepcopyt volume_fakest VOLUMEt TrueR t gett return_valuet SNAPSHOTR t createR t CreateSnapshotR t cmd( R
( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_snapshot.pyR " s c C sÜ t i d t i d t i d g } d t i f d t i f d t i f d t f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i
t i d t d t i d t i ƒ| i | t i ƒ | i | t i
ƒ d S( Ns --names
--descriptions --forceR t namet descriptiont force( R t volume_idt
snapshot_namet snapshot_descriptionR t check_parserR t take_actionR R t assert_called_witht assertEqualt SNAPSHOT_columnst
SNAPSHOT_data( R
t arglistt
verifylistt parsed_argst columnst data( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_snapshot.pyt test_snapshot_create3 s"
( R R R R0 ( ( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_snapshot.pyR ! s t TestSnapshotShowc B s e Z d „ Z d „ Z RS( c C s\ t t | ƒ i ƒ t i d t i t i ƒ d t
ƒ| i i _
t i | i d ƒ | _ d S( NR ( R R1 R R R R R R R R R R R R R t ShowSnapshotR R ( R
( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_snapshot.pyR O s c C sŽ t i g } d t i f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i t i ƒ | i t i | ƒ | i t i
| ƒ d S( NR ( R t snapshot_idR% R R&