def table_equals_helper(sqla_table, expected_table): table = table_to_intermediary(sqla_table.__table__) assert len(table.columns) == len(expected_table.columns) assert table.name == expected_table.name for col in table.columns: assert col in expected_table.columns