From: Jason Kirtland Date: Fri, 27 Jul 2007 22:40:38 +0000 (+0000) Subject: Added some collections slicing tests that somehow escaped the r3040 commit. X-Git-Tag: rel_0_4beta1~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02aab451c3ff7f8ea938a7aa41a33ef3acaefb5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Added some collections slicing tests that somehow escaped the r3040 commit. --- diff --git a/test/orm/collection.py b/test/orm/collection.py index 1f4f649281..432528a83e 100644 --- a/test/orm/collection.py +++ b/test/orm/collection.py @@ -187,7 +187,22 @@ class CollectionsTest(PersistTest): direct[0:] = values control[0:] = values assert_eq() - + + values = [creator()] + direct[:1] = values + control[:1] = values + assert_eq() + + values = [creator()] + direct[-1::2] = values + control[-1::2] = values + assert_eq() + + values = [creator()] * len(direct[1::2]) + direct[1::2] = values + control[1::2] = values + assert_eq() + if hasattr(direct, '__delslice__'): for i in range(1, 4): e = creator()