Changeset 451 for elixir/trunk

Show
Ignore:
Timestamp:
04/20/09 17:18:10 (3 years ago)
Author:
ged
Message:

simplified m2m column_format test

Files:
1 modified

Legend:

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

    r397 r451  
    6060        assert b in a.bs_ 
    6161 
    62         found_a = False 
    63         found_b = False 
    64         for column in A.mapper.get_property('bs_').secondary.columns: 
    65             if column.name == 'a_id': found_a = True 
    66             elif column.name == 'b_id': found_b = True 
    67         assert found_a 
    68         assert found_b 
     62        m2m_cols = A.bs_.property.secondary.columns 
     63        assert 'a_id' in m2m_cols 
     64        assert 'b_id' in m2m_cols 
    6965 
    7066    def test_multi_pk_in_target(self):