[Zope-Checkins] CVS: Zope3/lib/python/Persistence/tests - testModule.py:1.3
Jeremy Hylton
jeremy@zope.com
Fri, 21 Jun 2002 15:30:42 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv15321
Modified Files:
testModule.py
Log Message:
replace assert stmts with unittest assert functions
=== Zope3/lib/python/Persistence/tests/testModule.py 1.2 => 1.3 ===
import pmtest
pmtest._p_deactivate()
- assert pmtest.a == 1
+ self.assertEqual(pmtest.a, 1)
pmtest.f(4)
def testUpdate(self):
@@ -32,13 +32,13 @@
"def f(x): return x")
get_transaction().commit()
import pmtest
- assert pmtest.f(3) == 3
+ self.assertEqual(pmtest.f(3), 3)
copy = pmtest.f
self.importer.update_module("pmtest",
"def f(x): return x + 1")
get_transaction().commit()
- assert pmtest.f(3) == 4
- assert copy(3) == 4
+ self.assertEqual(pmtest.f(3), 4)
+ self.assertEqual(copy(3), 4)
def test_suite():
return unittest.makeSuite(TestModule)