[CalendarServer-changes] [8167] CalendarServer/branches/users/glyph/shared-pool-take2/twext/ enterprise/test/test_adbapi2.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 10 08:04:24 PDT 2011
Revision: 8167
http://trac.macosforge.org/projects/calendarserver/changeset/8167
Author: glyph at apple.com
Date: 2011-10-10 08:04:24 -0700 (Mon, 10 Oct 2011)
Log Message:
-----------
assertions for ICommandBlock dialect/paramstyle
Modified Paths:
--------------
CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/test/test_adbapi2.py
Modified: CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/test/test_adbapi2.py
===================================================================
--- CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/test/test_adbapi2.py 2011-10-10 15:04:10 UTC (rev 8166)
+++ CalendarServer/branches/users/glyph/shared-pool-take2/twext/enterprise/test/test_adbapi2.py 2011-10-10 15:04:24 UTC (rev 8167)
@@ -866,13 +866,14 @@
def test_propagateParamstyle(self):
"""
- Each different type of L{IAsyncTransaction} relays the C{paramstyle}
+ Each different type of L{ISQLExecutor} relays the C{paramstyle}
attribute from the L{ConnectionPool}.
"""
TEST_PARAMSTYLE = "justtesting"
self.setParamstyle(TEST_PARAMSTYLE)
normaltxn = self.createTransaction()
self.assertEquals(normaltxn.paramstyle, TEST_PARAMSTYLE)
+ self.assertEquals(normaltxn.commandBlock().paramstyle, TEST_PARAMSTYLE)
self.pauseHolders()
extra = []
extra.append(self.createTransaction())
@@ -893,13 +894,14 @@
def test_propagateDialect(self):
"""
- Each different type of L{IAsyncTransaction} relays the C{dialect}
+ Each different type of L{ISQLExecutor} relays the C{dialect}
attribute from the L{ConnectionPool}.
"""
TEST_DIALECT = "otherdialect"
self.setDialect(TEST_DIALECT)
normaltxn = self.createTransaction()
self.assertEquals(normaltxn.dialect, TEST_DIALECT)
+ self.assertEquals(normaltxn.commandBlock().dialect, TEST_DIALECT)
self.pauseHolders()
extra = []
extra.append(self.createTransaction())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111010/d812804a/attachment.html>
More information about the calendarserver-changes
mailing list