Changeset 3243
- Timestamp:
- 05/24/07 14:45:20 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Schevo/tests/test_transaction_before_after.py
r3242 r3243 46 46 47 47 def test(self): 48 # All of the asserts are in the schema. Just create a Foo, 49 # update it, then delete it to cover all of the code. 50 foo = ex(db.Foo.t.create(name='foo1')) 51 ex(foo.t.update(name='foo2')) 52 ex(foo.t.delete()) 48 tx = db.Foo.t.create(name='foo1') 49 foo = ex(tx) 50 assert tx.x.bar == 5 51 tx = foo.t.update(name='foo2') 52 ex(tx) 53 assert tx.x.bar == 42 54 tx = foo.t.delete() 55 ex(tx) 56 assert tx.x.bar == 12 53 57 54 58
