def METHOD_NAME(m_paginated_list):
    s3 = MagicMock()
    m_paginated_list.side_effect = botocore.exceptions.BotoCoreError
    with pytest.raises(s3_object.S3ObjectFailure):
        s3_object.list_keys(s3, "a987e6b6026ab04e4717", "", "", 1000)