[Zope3-checkins] CVS: Packages/ZConfig/tests - testConfig.py:1.16.10.1
Fred L. Drake, Jr.
fred@zope.com
Tue, 10 Dec 2002 10:57:21 -0500
Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv31753/tests
Modified Files:
Tag: zconfig-schema-devel-branch
testConfig.py
Log Message:
Refactor the Context object to separate the config file syntax support
from resource handling.
Excise the "%import" stuff -- that will not make sense in the schema world.
=== Packages/ZConfig/tests/testConfig.py 1.16 => 1.16.10.1 ===
--- Packages/ZConfig/tests/testConfig.py:1.16 Thu Dec 5 00:17:46 2002
+++ Packages/ZConfig/tests/testConfig.py Tue Dec 10 10:57:20 2002
@@ -190,34 +190,6 @@
L2 = conf.getChildSections("TRIVIAL")
self.assertEqual(L, L2)
- def test_basic_import(self):
- conf = self.load("importer.conf")
- self.assertEqual(conf.get("var1"), "def")
- self.assertEqual(conf.get("VAR1"), "def")
- self.assertEqual(conf.get("int-var"), "12")
- self.assertEqual(conf.get("INT-VAR"), "12")
-
- def test_imported_section_override(self):
- conf = self.load("importsections.conf")
- sect = conf.getSection("override", "over-b")
- self.assertEqual(sect.get("var"), "a-2")
- self.assert_(sect.get("var2") is None)
- sect = conf.getSection("override", "over-a")
- self.assertEqual(sect.get("var"), "a-2")
- self.assert_(sect.get("var2") is None)
-
- def test_imported_section_delegation(self):
- conf = self.load("importsections.conf")
- sect = conf.getSection("section", "a")
- self.assertEqual(sect.get("var"), "1")
- self.assertEqual(sect.get("cvar"), "value")
- sect = conf.getSection("section", "b")
- self.assertEqual(sect.get("var"), "2")
- self.assertEqual(sect.get("cvar"), "value")
- sect = conf.getSection("section", "c")
- self.assertEqual(sect.get("var"), "3")
- self.assertEqual(sect.get("cvar"), "value")
-
def test_no_delegation(self):
url = urlparse.urljoin(CONFIG_BASE, "simplesections.conf")
context = NoDelegationContext()