def _check_table_name(table_name, base_table_name):
    """
    Checks if (table_name == (base_table_name + "n")) where n is an integer
    :param table_name: str
    :param base_table_name: str
    :return: bool
    """
    # Split of last part of table_name
    split_table_name = table_name.split('_')
    table = "_".join(split_table_name[:-1])
    number = split_table_name[-1]
    try:
        int(number)
        is_number = True
    except ValueError:
        is_number = False
    return (table == base_table_name) and is_number