def _check_list_len ( row , length ) : if len ( row ) != length : raise Exception ( "row length does not match expected length of " + str ( length ) + "\nrow: " + str ( row ) )
python validate list has at least one
Sanity check for csv parser : param row : param length : return : None
def _check_list_len(row, length):
        """
        Sanity check for csv parser
        :param row
        :param length
        :return:None
        """
        if len(row) != length:
            raise Exception(
                "row length does not match expected length of " +
                str(length) + "\nrow: " + str(row))