Changeset 438 for elixir/trunk

Show
Ignore:
Timestamp:
12/22/08 15:25:44 (3 years ago)
Author:
ged
Message:

add future test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/tests/test_o2m.py

    r424 r438  
    44 
    55from elixir import * 
    6 from sqlalchemy import and_ 
     6from sqlalchemy import and_, ForeignKey 
    77from sqlalchemy.ext.orderinglist import ordering_list 
    88 
     
    195195        assert user.blurbs[3].position == 3 
    196196 
     197#    def test_manual_join_no_inverse(self): 
     198#        class A(Entity): 
     199#            name = Field(String(60)) 
     200#            bs = OneToMany('B') 
     201# 
     202#        class B(Entity): 
     203#            name = Field(String(60)) 
     204#            a_id = Field(Integer, ForeignKey('a.id')) 
     205# 
     206#        setup_all(True) 
     207# 
     208#        a1 = A(name='a1', bs=[B(name='b1')]) 
     209# 
     210#        session.commit() 
     211#        session.clear() 
     212# 
     213#        b = B.query.one() 
     214# 
     215#        assert b.a_id == 1 
     216# 
    197217    def test_inverse_has_non_pk_target(self): 
    198218        class A(Entity):