[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests - test_include.py:1.6

Fred L. Drake, Jr. fred at zope.com
Thu Apr 1 11:41:54 EST 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv3399/zpkgtools/tests

Modified Files:
	test_include.py 
Log Message:
the path normalization methods are really local utilities; rename them to use
names_with_underscores for readability


=== Packages/zpkgtools/zpkgtools/tests/test_include.py 1.5 => 1.6 ===
--- Packages/zpkgtools/zpkgtools/tests/test_include.py:1.5	Wed Mar 31 15:42:22 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_include.py	Thu Apr  1 11:41:54 2004
@@ -89,12 +89,16 @@
         self.assert_(join(self.source, "ignorethis.txt")
                      in self.spec.excludes)
 
-    def test_normalizePath(self):
-        normalize = include.Specification("foo").normalizePath
+    # These two tests are really checking internal helpers, but
+    # they're a lot more reasonable to express separately from the
+    # public API.
+
+    def test_normalize_path(self):
+        normalize = self.spec.normalize_path
         self.check_normalize_paths(normalize)
 
-    def test_normalizePathOrURL(self):
-        normalize = include.Specification("foo").normalizePathOrURL
+    def test_normalize_path_or_url(self):
+        normalize = self.spec.normalize_path_or_url
         self.check_normalize_paths(normalize)
         self.check_normalize_urls(normalize)
 




More information about the Zope-CVS mailing list