[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests -
test_setup.py:1.3
Fred L. Drake, Jr.
fred at zope.com
Mon Jun 7 15:52:28 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv20326/zpkgtools/tests
Modified Files:
test_setup.py
Log Message:
change SetupContext: initialization is not performed automatically;
this is intended to make this class more readily testible
=== Packages/zpkgtools/zpkgtools/tests/test_setup.py 1.2 => 1.3 ===
--- Packages/zpkgtools/zpkgtools/tests/test_setup.py:1.2 Mon Jun 7 13:52:04 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_setup.py Mon Jun 7 15:52:27 2004
@@ -35,6 +35,7 @@
f.close()
try:
context = setup.SetupContext("package", "0.1.234", setupfile)
+ context.initialize()
context.package_data["package"].sort()
self.assertEqual(context.package_data,
{"package": ["PUBLICATION.cfg",
@@ -46,6 +47,7 @@
packagedir = os.path.join(here, "input", "package2")
setupfile = os.path.join(here, "input", "setup.py")
context = setup.SetupContext("package2", "0.1.234", setupfile)
+ context.initialize()
context.package_data["package2"].sort()
self.assertEqual(context.package_data,
{"package2": ["PUBLICATION.cfg", "SETUP.cfg"]})
More information about the Zope-CVS
mailing list