Changeset 478 for elixir/trunk/tests/test_m2m.py
- Timestamp:
- 09/29/09 18:53:07 (3 years ago)
- Files:
-
- 1 modified
-
elixir/trunk/tests/test_m2m.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/tests/test_m2m.py
r477 r478 58 58 def test_table_kwargs(self): 59 59 class A(Entity): 60 using_options(shortnames=True)61 name = Field(String(60))62 60 bs_ = ManyToMany('B', table_kwargs={'info': {'test': True}}) 63 61 64 62 class B(Entity): 65 using_options(shortnames=True)66 name = Field(String(60))67 63 as_ = ManyToMany('A') 68 64 … … 71 67 72 68 assert A.bs_.property.secondary.info['test'] is True 69 70 def test_table_default_kwargs(self): 71 options_defaults['table_options'] = {'info': {'test': True}} 72 73 class A(Entity): 74 bs_ = ManyToMany('B') 75 76 class B(Entity): 77 as_ = ManyToMany('A') 78 79 setup_all(True) 80 A.mapper.compile() 81 82 options_defaults['table_options'] = {} 83 84 assert A.bs_.property.secondary.info['test'] is True 85 assert A.table.info['test'] is True 86 assert B.table.info['test'] is True 73 87 74 88 def test_custom_global_column_nameformat(self):
