def METHOD_NAME(self):
    """When searching S3 to populate a report, the base output path
    should end with the policy name."""
    policy_name = "my_c7n_policy"
    output_paths = [
        f"logs/{policy_name}",
        f"/logs/{policy_name}",
        f"logs/{policy_name}/2021/01/01/01/",
        f"/logs/{policy_name}/with/more/extra/path/segments",
    ]
    self.assertTrue(all(
        strip_output_path(p, policy_name) == f"logs/{policy_name}"
        for p in output_paths
    ))