def test_sequentiality(l, item, n):
    
    """
    Test wether an array contains n times item in a row
    """

    if n>len(l): return False, len(l)
    s = 0
    first = 0
    for i in range(len(l)):
        if l[i] != item:
            s = 0
            first = i
        else:
            s = s+1
            if s == n: return True, first

    return False, len(l)