/usr/lib/python2.6/site-packages/cinderclient/tests/unit/v2
Edit: /usr/lib/python2.6/site-packages/cinderclient/tests/unit/v2/fakes.pyc (44122B)
=vVc @ sY d d k l Z y d d k Z Wn" e j
o d d k i Z n Xd d k l Z d d k l Z d d k
i i i
Z
d d k l Z d Z d Z e d Z e d Z d Z d
Z d Z d Z d
Z d d d Z d Z d Z d Z d Z d Z d e i e i! f d YZ d e i" f d YZ# d S( i( t datetimeN( t client( t fakesc K s h d d 6d d 6d d 6g d 6d d 6d d 6d
d 6d d 6h d
6d d 6d d 6d d 6d d 6d d 6h d d 6d d 6h d d 6d d 6g d 6} | i | | S( Nt 1234t idt namet descriptiont attachmentst falset bootablet cindert availability_zones 2012-08-27T00:00:00.000000t
created_ats$ 00000000-0000-0000-0000-000000000000t metadatai t sizet snapshot_idt availablet statust Nonet volume_typet multiattachs% http://localhost/v2/fake/volumes/1234t hreft selft rels" http://localhost/fake/volumes/1234t bookmarkt links( R t update( t kwargst volume( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_volume s.
c K sH h d d 6d d 6d d 6d d 6d d 6d d
6d d 6} | i | | S(
Ns 2012-08-28T16:30:31.000000R t display_descriptiont display_names$ 11111111-1111-1111-1111-111111111111R i R R R s$ 00000000-0000-0000-0000-000000000000t volume_id( R R ( R t snapshot( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_snapshot; s
c K s_ h d d 6d d 6} | o3 h d d 6d d 6d d 6d
d 6} | i | n | i | | S( Nt cgR s$ 11111111-1111-1111-1111-111111111111R s 2012-08-28T16:30:31.000000R R t myzoneR R R ( R R ( t detailedR t consistencygroupt details( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_consistencygroupI s
c K sm h d d 6d d 6} | oA h d d 6d d 6d d 6d d 6d d 6d d
6} | i | n | i | | S( NR s$ 11111111-1111-1111-1111-111111111111R s 2012-08-28T16:30:31.000000R R R R s$ 00000000-0000-0000-0000-000000000000t consistencygroup_id( R R ( R% R t
cgsnapshotR' ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_cgsnapshotZ s
c K s% h d d 6d d 6} | i | | S( Ns$ 11111111-1111-1111-1111-111111111111t volume_type_ids$ 00000000-0000-0000-0000-000000000000t
project_id( R ( R t access( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_type_accessm s
c C s d | | | f S( Ns %s/v2/%s/backups/%s( ( t base_urit tenant_idt backup_id( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt
_self_hreft s c C s d | | | f S( Ns %s/%s/backups/%s( ( R0 R1 R2 ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _bookmark_hrefx s c C s h | d 6d d 6d d 6d d 6d d 6d
d 6d d
6d d 6d d 6d d 6h t | | | d 6d d 6h t | | | d 6d d 6g d 6S( NR t backupR s nightly backupR s$ 712f4980-5ac1-41e5-9383-390aa7c9f58bR t
volumebackupst containeri t object_counti
R t az1R s 2013-04-12T08:16:37.000000R R R R R R R R ( R3 R4 ( R R0 R1 ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_backup_full| s" c C sS h | d 6d d 6h t | | | d 6d d 6h t | | | d 6d d 6g d 6S( NR R5 R R R R R R ( R3 R4 ( R R0 R1 ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_backup s c C sj | p
d } n | p
h } n h h | d 6| d 6d d 6| d 6d 6h t | | | d 6d d
6d 6S( Ns fake-nameR R s back-endt consumert specst qos_specsR R R R ( R4 ( R R0 R1 R R= ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_qos_full s
c C s h d d 6| d 6| d 6S( NR t assoications_typeR R ( ( R R ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_qos_associates s c C s h d d 6S( Ns$ 712f4980-5ac1-41e5-9383-390aa7c9f58bR ( ( ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt
_stub_restore s c C sh h | d 6d d 6d d 6d d 6d d 6h t | | | d
6d d 6h t | | | d
6d
d 6g d 6S( NR t transferR s$ 8c05f861-6052-4df6-b3e0-0aebfbe686ccR s 2013-04-12T08:16:37.000000R t 123456t auth_keyR R R R R ( R3 R4 ( R R0 R1 ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_transfer_full s c C sZ h | d 6d d 6d d 6h t | | | d 6d d 6h t | | | d 6d d 6g d
6S( NR RC R s$ 8c05f861-6052-4df6-b3e0-0aebfbe686ccR R R R R R ( R3 R4 ( R R0 R1 ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_transfer s c C s h d d 6S( Ns$ 712f4980-5ac1-41e5-9383-390aa7c9f58bR ( ( R t new_size( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyt _stub_extend s t
FakeClientc B s e Z d Z d Z RS( c O s> t i i | d d d d d | i d t | | _ d S( Nt usernamet passwordR- t auth_urlt
extensions( R t Clientt __init__t gett FakeHTTPClient( R t argsR ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyRP s c C s
| i i S( N( R t$ get_volume_api_version_from_endpoint( R ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyRT s ( t __name__t
__module__RP RT ( ( ( sM /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v2/fakes.pyRJ s RR c 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 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&