[Zope-Checkins] CVS: Zope3/lib/python/Persistence/tests - testModule.py:1.12
Jeremy Hylton
jeremy@zope.com
Wed, 10 Jul 2002 19:12:13 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv29041
Modified Files:
testModule.py
Log Message:
Make code in triple-quoted strings easier to read.
=== Zope3/lib/python/Persistence/tests/testModule.py 1.11 => 1.12 ===
from Persistence import tests
# snippets of source code used by testModules
-foo_src = """x = 1
+foo_src = """\
+x = 1
def f(y):
return x + y
"""
-quux_src = """from foo import x
+quux_src = """\
+from foo import x
def f(y):
return x + y
"""
-side_effect_src = """x = 1
+side_effect_src = """\
+x = 1
def inc():
global x
x += 1
return x
"""
-builtin_src = """x = 1, 2, 3
+builtin_src = """\
+x = 1, 2, 3
def f():
return len(x)
"""
-nested_src = """def f(x):
+nested_src = """\
+def f(x):
def g(y):
def z(z):
return x + y + z
@@ -35,7 +40,6 @@
g = f(3)
"""
-
class TestModule(unittest.TestCase):