def main(table_name, new_table_name, column_name_pattern, identifier_column, identifier_column_that_maps,
         sequence_field_name, connection_url, schema=None, additional_column_list=None):

    engine = sa.create_engine(connection_url)

    dmu.normalize_columns_that_repeat(table_name, new_table_name, column_name_pattern,  engine, identifier_column,
                                      identifier_column_that_maps, sequence_field_name, schema, additional_column_list)
 def test_create_table_and_insert_for_extra_columns(self):
     ntd.normalize_columns_that_repeat('denormalized_table', "diagnosis", "dx", self.engine, "id", "mapped_id",
                                       sequence_field_name="sequence_id", additional_field_list=["cost"])
    def test_create_table_and_insert(self):

        ntd.normalize_columns_that_repeat('denormalized_table', "diagnosis", "dx", self.engine, "id", "mapped_id",
                                          sequence_field_name="sequence_id")