(self)
| 1046 | eq_(table3_c.c.foo.comment, "some column") |
| 1047 | |
| 1048 | def test_col_key_fk_parent(self): |
| 1049 | # test #2643 |
| 1050 | m1 = MetaData() |
| 1051 | a = Table("a", m1, Column("x", Integer)) |
| 1052 | b = Table("b", m1, Column("x", Integer, ForeignKey("a.x"), key="y")) |
| 1053 | assert b.c.y.references(a.c.x) |
| 1054 | |
| 1055 | m2 = MetaData() |
| 1056 | b2 = b.to_metadata(m2) |
| 1057 | a2 = a.to_metadata(m2) |
| 1058 | assert b2.c.y.references(a2.c.x) |
| 1059 | |
| 1060 | def test_fk_w_no_colname(self): |
| 1061 | """test a ForeignKey that refers to table name only. the column |
nothing calls this directly
no test coverage detected