diff options
author | schettino72 <schettino72@gmail.com> | 2013-11-25 14:18:34 +1300 |
---|---|---|
committer | schettino72 <schettino72@gmail.com> | 2013-11-25 14:18:34 +1300 |
commit | 8fc91105a0ee484fb9c76e7e957c78a5f1901ddb (patch) | |
tree | 606c9025740607a95b5a28b163d5d9b83e457947 /test/orm/test_collection.py | |
parent | af192056ddcbf2e19500dd346ddc496bc1620f66 (diff) | |
download | sqlalchemy-pr/40.tar.gz |
orm.collection, list.clear(). remove 'before_delete()', added unit-test.pr/40
Diffstat (limited to 'test/orm/test_collection.py')
-rw-r--r-- | test/orm/test_collection.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/orm/test_collection.py b/test/orm/test_collection.py index f6493f1a8..f94c742b3 100644 --- a/test/orm/test_collection.py +++ b/test/orm/test_collection.py @@ -284,6 +284,16 @@ class CollectionsTest(fixtures.ORMTest): del control[:] assert_eq() + if hasattr(direct, 'clear'): + for i in range(1, 4): + e = creator() + direct.append(e) + control.append(e) + + direct.clear() + control.clear() + assert_eq() + if hasattr(direct, 'extend'): values = [creator(), creator(), creator()] |