[CalendarServer-changes] [10269] CalendarServer/branches/users/glyph/queue-locking-and-timing
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jan 4 16:39:35 PST 2013
Revision: 10269
http://trac.calendarserver.org//changeset/10269
Author: glyph at apple.com
Date: 2013-01-04 16:39:35 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
Increase test coverage to include edge case.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/queue-locking-and-timing/
Modified: CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py
===================================================================
--- CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py 2013-01-05 00:39:34 UTC (rev 10268)
+++ CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py 2013-01-05 00:39:35 UTC (rev 10269)
@@ -148,10 +148,17 @@
as UTC.
"""
txn = self.pool.connection()
+ # Create ...
rec = yield TestAutoRecord.create(txn, epsilon=1)
self.assertEquals(rec.zeta, datetime.datetime(2012, 12, 12, 12, 12, 12))
+ yield txn.commit()
+ # ... should have the same effect as loading.
+ txn = self.pool.connection()
+ rec = (yield TestAutoRecord.all(txn))[0]
+ self.assertEquals(rec.zeta, datetime.datetime(2012, 12, 12, 12, 12, 12))
+
@inlineCallbacks
def test_tooManyAttributes(self):
"""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130104/c6a97f9c/attachment.html>
More information about the calendarserver-changes
mailing list