'Determine if raw server block contains test list at top level'

def contains_list(self, test):

    for i in six.moves.range(0, (len(self.raw) - len(test))):
        if (self.raw[i:(i + len(test))] == test):
            return True
    return False
