/usr/lib/python2.6/site-packages/openstackclient/tests/volume/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/volume/v2/test_backup.pyc (7874B)
Ñò
;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 S( iÿÿÿÿN( t fakes( t backupt
TestBackupc 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 ƒ | i i i i | _ | i i ƒ d S( N(
t superR t setUpt appt client_managert volumet backupst backups_mockt
reset_mockt volumest volumes_mockt restorest
restores_mock( t self( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR s
( t __name__t
__module__R ( ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR s t TestBackupCreatec 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 BACKUPR t createR t CreateBackupR t cmd( R ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR $ s c C sè t i d t i d t i d t i g } d t i f d t i f d t i f d t i f g } | i | i | | ƒ } | i i | ƒ \ } } | i i i t i d t i d t i d t i ƒ| i
| t i ƒ | i
| t i ƒ d S( Ns --names
--descriptions --containerR t namet descriptiont container(
R t volume_idt backup_namet backup_descriptiont check_parserR t take_actionR R t assert_called_witht assertEqualt BACKUP_columnst BACKUP_data( R t arglistt
verifylistt parsed_argst columnst data( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyt test_backup_create5 s"
( R R R R2 ( ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR # s t TestBackupShowc 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 R3 R R R R R R R R R R R R R t
ShowBackupR R ( R ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR Q 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 backup_idR' R R( R R R) R* R+ R, ( R R- R. R/ R0 R1 ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyt test_backup_show[ s ( R R R R6 ( ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR3 P s
t TestBackupDeletec B s e Z d „ Z d „ Z RS( c C sk t t | ƒ i ƒ t i d t i t i ƒ d t
ƒ| i i _
d | i i _
t i | i d ƒ | _ d S( NR ( R R7 R R R R R R R R R R R R t deleteR t DeleteBackupR R ( R ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR l s c C sc t i g } d t i g f g } | i | i | | ƒ } | i i | ƒ | i i i t i ƒ d S( NR ( R R5 R' R R( R R8 R) ( R R- R. R/ ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyt test_backup_deletex s
( R R R R: ( ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR7 k s t TestBackupRestorec 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 _
d | i i _
t i | i d ƒ | _ d S( NR ( R R; R R R R R R R R R R R R R R R t restoreR t
RestoreBackupR R ( R ( ( s[ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/tests/volume/v2/test_backup.pyR ‡ s c C sx t i t i g } d t i f d t i f g } | i | i | | ƒ } | i i | ƒ | i i i t i t i ƒ d S( NR R ( R R5 R$ R' R R( R R<