def test_it_detects_non_overlaps(): assert not handlers.is_overlap("s3://bucket/prefix/", "s3://otherbucket/prefix/")
def test_it_detects_non_overlapping_prefixes_in_same_bucket(): assert not handlers.is_overlap("s3://bucket/foo/bar", "s3://otherbucket/foo/baz")
def test_it_detects_overlaps(): assert handlers.is_overlap("s3://bucket/prefix/", "s3://bucket/prefix/subprefix/") assert handlers.is_overlap("s3://bucket/prefix/subprefix/", "s3://bucket/prefix/")