'Check that we do not hit a recursion limit'

def test_hit_recursion_limit(self):

    data_list = []
    inner_list = data_list
    for i in range(0, 10000):
        new_list = []
        inner_list.append(new_list)
        inner_list = new_list
    inner_list.append('secret')
    actual_data_list = remove_values(data_list, frozenset(('secret',)))
    levels = 0
    inner_list = actual_data_list
    while inner_list:
        if isinstance(inner_list, list):
            self.assertEquals(len(inner_list), 1)
        else:
            levels -= 1
            break
        inner_list = inner_list[0]
        levels += 1
    self.assertEquals(inner_list, self.OMIT)
    self.assertEquals(levels, 10000)
