(self, table, name, text, persisted)
| 2297 | |
| 2298 | class ComputedColumnTest(fixtures.ComputedReflectionFixtureTest): |
| 2299 | def check_table_column(self, table, name, text, persisted): |
| 2300 | is_true(name in table.columns) |
| 2301 | col = table.columns[name] |
| 2302 | is_not(col.computed, None) |
| 2303 | is_instance_of(col.computed, Computed) |
| 2304 | |
| 2305 | eq_(self.normalize(str(col.computed.sqltext)), text) |
| 2306 | if testing.requires.computed_columns_reflect_persisted.enabled: |
| 2307 | eq_(col.computed.persisted, persisted) |
| 2308 | else: |
| 2309 | is_(col.computed.persisted, None) |
| 2310 | |
| 2311 | def test_table_reflection(self): |
| 2312 | meta = MetaData() |
no test coverage detected