summaryrefslogtreecommitdiff
path: root/test/ext/declarative/test_inheritance.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-15 18:48:54 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-15 18:48:54 -0400
commitca049bc670d0fbaaa33a097dc9a7bf168dd3dceb (patch)
tree6f128f019f7315f1f89e92174311b7f5e584e76a /test/ext/declarative/test_inheritance.py
parent54808ecccd9f6e7907f4762f6df33e1ad303189c (diff)
downloadsqlalchemy-ca049bc670d0fbaaa33a097dc9a7bf168dd3dceb.tar.gz
remove duped test
Diffstat (limited to 'test/ext/declarative/test_inheritance.py')
-rw-r--r--test/ext/declarative/test_inheritance.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/ext/declarative/test_inheritance.py b/test/ext/declarative/test_inheritance.py
index c7117fb43..3bcd17bb7 100644
--- a/test/ext/declarative/test_inheritance.py
+++ b/test/ext/declarative/test_inheritance.py
@@ -286,42 +286,6 @@ class DeclarativeInheritanceTest(DeclarativeTestBase):
assert class_mapper(Engineer).inherits is class_mapper(Person)
- @testing.fails_if(lambda: True, "Not implemented until 0.7")
- def test_foreign_keys_with_col(self):
- """Test that foreign keys that reference a literal 'id' subclass
- 'id' attribute behave intuitively.
-
- See [ticket:1892].
-
- """
-
- class Booking(Base):
- __tablename__ = 'booking'
- id = Column(Integer, primary_key=True)
-
- class PlanBooking(Booking):
- __tablename__ = 'plan_booking'
- id = Column(Integer, ForeignKey(Booking.id),
- primary_key=True)
-
- # referencing PlanBooking.id gives us the column
- # on plan_booking, not booking
- class FeatureBooking(Booking):
- __tablename__ = 'feature_booking'
- id = Column(Integer, ForeignKey(Booking.id),
- primary_key=True)
- plan_booking_id = Column(Integer,
- ForeignKey(PlanBooking.id))
-
- plan_booking = relationship(PlanBooking,
- backref='feature_bookings')
-
- assert FeatureBooking.__table__.c.plan_booking_id.\
- references(PlanBooking.__table__.c.id)
-
- assert FeatureBooking.__table__.c.id.\
- references(Booking.__table__.c.id)
-
def test_with_undefined_foreignkey(self):
class Parent(Base):