From e6e0ea3f041e0273cdac86da663a4a273e1beebb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 26 Jan 2009 17:17:22 +0000 Subject: - Added a ``traversal_path`` API to the traversal module; see the "traversal" API chapter in the docs. This was a function previously known as ``split_path`` that was not an API but people were using it anyway. Unlike ``split_path`` it now returns a tuple instead of a list (as its values are cached). --- repoze/bfg/tests/test_traversal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'repoze/bfg/tests/test_traversal.py') diff --git a/repoze/bfg/tests/test_traversal.py b/repoze/bfg/tests/test_traversal.py index 6459ed1af..f21cf7d8d 100644 --- a/repoze/bfg/tests/test_traversal.py +++ b/repoze/bfg/tests/test_traversal.py @@ -2,10 +2,10 @@ import unittest from zope.testing.cleanup import cleanUp -class SplitPathTests(unittest.TestCase): +class TraversalPathTests(unittest.TestCase): def _callFUT(self, path): - from repoze.bfg.traversal import split_path - return split_path(path) + from repoze.bfg.traversal import traversal_path + return traversal_path(path) def test_path_startswith_endswith(self): self.assertEqual(self._callFUT('/foo/'), (u'foo',)) -- cgit v1.2.3