(self)
| 292 | assert c2._create_rule is r |
| 293 | |
| 294 | def test_col_replace_w_constraint(self): |
| 295 | m = MetaData() |
| 296 | a = Table("a", m, Column("id", Integer, primary_key=True)) |
| 297 | |
| 298 | aid = Column("a_id", ForeignKey("a.id")) |
| 299 | b = Table("b", m, aid) |
| 300 | b.append_column(aid) |
| 301 | |
| 302 | assert b.c.a_id.references(a.c.id) |
| 303 | eq_(len(b.constraints), 2) |
| 304 | |
| 305 | def test_fk_construct(self): |
| 306 | c1 = Column("foo", Integer) |
nothing calls this directly
no test coverage detected