[Zope3-checkins] CVS: Packages/ZConfig/tests - support.py:1.3

Fred L. Drake, Jr. fred@zope.com
Wed, 19 Feb 2003 17:00:15 -0500


Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv2205

Modified Files:
	support.py 
Log Message:
Be more explicit about what create_loader() is supposed to return, by
using a different name for the method.


=== Packages/ZConfig/tests/support.py 1.2 => 1.3 ===
--- Packages/ZConfig/tests/support.py:1.2	Wed Feb 19 16:31:12 2003
+++ Packages/ZConfig/tests/support.py	Wed Feb 19 17:00:15 2003
@@ -56,17 +56,17 @@
 
     def load_config(self, schema, conf_url, num_handlers=0):
         conf_url = urljoin(CONFIG_BASE, conf_url)
-        loader = self.create_loader(schema)
+        loader = self.create_config_loader(schema)
         self.conf, self.handlers = loader.loadURL(conf_url)
         self.assertEqual(len(self.handlers), num_handlers)
         return self.conf
 
     def load_config_text(self, schema, text, num_handlers=0, url=None):
         sio = StringIO.StringIO(text)
-        loader = self.create_loader(schema)
+        loader = self.create_config_loader(schema)
         self.conf, self.handlers = loader.loadFile(sio, url)
         self.assertEqual(len(self.handlers), num_handlers)
         return self.conf
 
-    def create_loader(self, schema):
+    def create_config_loader(self, schema):
         return ConfigLoader(schema)