#NEWLINE# def test_functional_create_container_and_object_then_download_object( self ) : #NEWLINE# #INDENT# names_list = [ 'aaa' , 'bbb' , 'ccc' , 'ddd' , 'eee' , 'fff' ] #NEWLINE# scenario = objects . SwiftObjects ( self . context ) #NEWLINE# scenario . generate_random_name = mock . MagicMock ( side_effect = name ) #NEWLINE# scenario . _download_object = mock . MagicMock ( ) #NEWLINE# scenario . create_container_and_object_then_download_object ( objects_per_container = 5 , object_size = 750 ) #NEWLINE# scenario . _download_object . assert_has_calls ( [ mock . call ( 'aaa' , name , atomic_action = False ) for name in names_list [ 1 : ] ] ) #NEWLINE# self . _test_atomic_action_timer ( scenario . atomic_actions ( ) , 'swift.create_5_objects' ) #NEWLINE# self . _test_atomic_action_timer ( scenario . atomic_actions ( ) , 'swift.download_5_objects' )