#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . schema = JsonObject ( TABLE_NAME , Property ( 'id' , 'VARCHAR(36)' ) ) #NEWLINE# self . bucket = Bucket ( AWS_ACCESS_KEY_ID , AWS_SECRET_ACCESS_KEY , BUCKET_NAME , Mock ( ) ) #NEWLINE# self . bucket . save = Mock ( ) #NEWLINE# self . key_names = [ 'object_path/00c68a1e-85f2-49e5-9d07-6922046dbc5a' , 'object_path/19440481-7766-4061-bd42-4a54fa0aac7c' , 'object_path/2014-09-02/19440481-7766-4061-bd42-4a54fa0aac7c' , 'object_path/282e6063-ecef-4e45-bdfb-9fdfb39840cd' , 'object_path/35cbf09a-b2dc-43f2-96f6-7d7573906268' , 'object_path/80536e83-6bbe-4a42-ade1-533d99321a6c' , 'object_path/cf00b394-3ff3-4418-b244-2ccf104fcc40' , 'object_path/e822e2ae-61f5-4be0-aacd-ca6de70faad1' ] #NEWLINE# self . bucket . list = Mock ( return_value = [ self . mock_key ( self ) for key in self . key_names ] ) #NEWLINE# self . manifest = Manifest ( metadata = '' , source = '' , schema = self . schema , bucket = self . bucket ) #NEWLINE# self . expected_manifest = { #NEWLINE# #INDENT# 'entries' : [ { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/00c68a1e-85f2-49e5-9d07-6922046dbc5a' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/19440481-7766-4061-bd42-4a54fa0aac7c' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/2014-09-02/19440481-7766-4061-bd42-4a54fa0aac7c' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/282e6063-ecef-4e45-bdfb-9fdfb39840cd' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/35cbf09a-b2dc-43f2-96f6-7d7573906268' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/80536e83-6bbe-4a42-ade1-533d99321a6c' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/cf00b394-3ff3-4418-b244-2ccf104fcc40' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : 's3://{0}/object_path/e822e2ae-61f5-4be0-aacd-ca6de70faad1' . format ( BUCKET_NAME ) , #NEWLINE# 'mandatory' : True , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# }