[Zope3-checkins] CVS: Zope3/src/zope/app/sqlexpr/tests -
test_sqlexpr.py:1.2
Philipp von Weitershausen
philikon at philikon.de
Wed Mar 3 21:06:17 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/sqlexpr/tests
In directory cvs.zope.org:/tmp/cvs-serv20892/app/sqlexpr/tests
Modified Files:
test_sqlexpr.py
Log Message:
Cleanup.
=== Zope3/src/zope/app/sqlexpr/tests/test_sqlexpr.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/sqlexpr/tests/test_sqlexpr.py:1.1 Fri Feb 27 09:39:41 2004
+++ Zope3/src/zope/app/sqlexpr/tests/test_sqlexpr.py Wed Mar 3 21:06:15 2004
@@ -33,7 +33,7 @@
class ConnectionStub:
def __init__(self):
- self._called={}
+ self._called = {}
def cursor(self):
return CursorStub()
@@ -43,13 +43,13 @@
def commit(self, *ignored):
v = self._called.setdefault('commit',0)
- v+=1
- self._called['commit']=v
+ v += 1
+ self._called['commit'] = v
def rollback(self, *ignored):
v = self._called.setdefault('rollback',0)
- v+=1
- self._called['rollback']=v
+ v += 1
+ self._called['rollback'] = v
class CursorStub:
@@ -86,7 +86,7 @@
class SQLExprTest(PlacelessSetup, unittest.TestCase):
def setUp(self):
- PlacelessSetup.setUp(self)
+ super(SQLExprTest, self).setUp()
self.context = Data(vars = {'rdb': 'rdb_conn',
'dsn': 'dbi://test'})
self.engine = Engine
@@ -105,9 +105,7 @@
self.assertRaises(NoConnectionSpecified, expr, Data(vars={}))
def test_suite():
- return unittest.TestSuite((
- unittest.makeSuite(SQLExprTest),
- ))
+ return unittest.TestSuite((unittest.makeSuite(SQLExprTest),))
if __name__ == '__main__':
unittest.TextTestRunner().run(test_suite())
More information about the Zope3-Checkins
mailing list