[Zope3-checkins] CVS: Packages/ZConfig/tests - test_config.py:1.3
Fred L. Drake, Jr.
fred@zope.com
Thu, 9 Jan 2003 11:06:10 -0500
Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv2126/tests
Modified Files:
test_config.py
Log Message:
Share the %define namespace with %inclduded resources.
Added new test to make sure this works, and ensure it does not get broken
later.
=== Packages/ZConfig/tests/test_config.py 1.2 => 1.3 ===
--- Packages/ZConfig/tests/test_config.py:1.2 Fri Jan 3 16:05:56 2003
+++ Packages/ZConfig/tests/test_config.py Thu Jan 9 11:05:37 2003
@@ -204,6 +204,12 @@
self.assertEqual(conf.get("VAR2"), "value2")
self.assertEqual(conf.get("var3"), "value3")
self.assertEqual(conf.get("VAR3"), "value3")
+ self.assertEqual(conf.get("var4"), "value")
+
+ def test_includes_with_defines(self):
+ conf = self.load("outer.conf")
+ self.assertEqual(conf.get("refinner"), "inner")
+ self.assertEqual(conf.get("refouter"), "outer")
def test_define(self):
conf = self.load("simple.conf")