def METHOD_NAME():
    cases = [
        # (size, needle_pos)
        (FIND_BUFFER_SIZE * 3 + 1, FIND_BUFFER_SIZE * 3 - 2),
        (FIND_BUFFER_SIZE * 3 + 3, FIND_BUFFER_SIZE * 3),
        (FIND_BUFFER_SIZE * 2, FIND_BUFFER_SIZE),
        (FIND_BUFFER_SIZE * 2, FIND_BUFFER_SIZE - 1),
        (11, 1),
    ]
    for (size, needle_pos) in cases:
        m = mmap.mmap(-1, size)
        m[needle_pos] = b'a'[0]
        m[needle_pos + 1] = b'b'[0]
        m[needle_pos + 2] = b'c'[0]
        assert m.find(b'abc') == needle_pos
        assert m.find(b'abc', 0, needle_pos) == -1
        assert m.find(b'abc', 0, needle_pos+2) == -1
        assert m.find(b'abc', 0, needle_pos+3) == needle_pos
        assert m.find(b'abc', needle_pos) == needle_pos
        assert m.find(b'abc', needle_pos+1) == -1
        assert m.find(b'abc', needle_pos-1) == needle_pos
        m.close()