Changeset 462

Show
Ignore:
Timestamp:
09/24/09 16:56:29 (3 years ago)
Author:
ged
Message:

added comments and assertions on autosetup test

Files:
1 modified

Legend:

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

    r347 r462  
    9696 
    9797    def test_createall(self): 
     98        assert 'person' not in metadata.tables 
     99 
     100        # note that if this test included a ManyToMany relationship, it would 
     101        # probably fail on SA 0.5.x and later, because the monkey-patched 
     102        # iterator is never called (but the TriggerProxy is). 
    98103        class Person(Entity): 
    99104            name = Field(String(30)) 
    100105            using_options(autosetup=True, tablename='person') 
    101106 
     107        assert isinstance(metadata.tables['person'], 
     108                          elixir.entity.TriggerProxy) 
     109 
    102110        create_all() 
     111 
    103112        assert isinstance(metadata.tables['person'], Table) 
    104113