[CalendarServer-changes] [9606] CalendarServer/branches/users/glyph/q
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 11 01:54:46 PDT 2012
Revision: 9606
http://trac.macosforge.org/projects/calendarserver/changeset/9606
Author: glyph at apple.com
Date: 2012-08-11 01:54:46 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
make failures easier to read; assert about each line individually
Modified Paths:
--------------
CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_sqlsyntax.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/q/
Modified: CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_sqlsyntax.py
===================================================================
--- CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_sqlsyntax.py 2012-08-11 08:54:45 UTC (rev 9605)
+++ CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_sqlsyntax.py 2012-08-11 08:54:46 UTC (rev 9606)
@@ -1037,14 +1037,18 @@
# the result of executing the 3rd (and final) one.
self.assertResultList(result, 3)
# Check that they were the right statements.
+ self.assertEqual(len(csql.execed), 3)
self.assertEqual(
- csql.execed,
- [
- ["select rowid from FOO where BAZ = :1", [1234]],
- ["update FOO set BAR = :1 WHERE BAZ = :2", [4321, 1234]],
- ["select BAR from FOO where rowid = :1", ["sample row id"]],
- ],
+ csql.execed[0],
+ ["select rowid from FOO where BAZ = :1", [1234]]
)
+ self.assertEqual(
+ csql.execed[1],
+ ["update FOO set BAR = :1 WHERE BAZ = :2", [4321, 1234]]
+ )
+ self.assertEqual(csql.execed[2],
+ ["select BAR from FOO where rowid = :1", ["sample row id"]]
+ )
def test_insertMismatch(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/479ff061/attachment.html>
More information about the calendarserver-changes
mailing list