#NEWLINE# def test_calls_list_objects_correctly( self ) : #NEWLINE# #INDENT# s3_client = Mock ( ) #NEWLINE# mock_paginate = s3_client . get_paginator . return_value . paginate #NEWLINE# mock_search = marker . return_value . search #NEWLINE# mock_search . return_value = [ ] #NEWLINE# provider = self . _get_mock_provider ( s3_client ) #NEWLINE# provider . load_digest_keys_in_range ( '1' , 'prefix' , START_DATE , END_DATE ) #NEWLINE# marker = 'prefix/AWSLogs/{account}/CloudTrail-Digest/us-east-1/2014/08/09/{account}_CloudTrail-Digest_us-east-1_foo_us-east-1_20140809T235900Z.json.gz' #NEWLINE# mock_paginate . assert_called_once_with ( Bucket = '1' , Marker = marker . format ( account = TEST_ACCOUNT_ID ) )