summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_traversal.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-01-26 17:17:22 +0000
committerChris McDonough <chrism@agendaless.com>2009-01-26 17:17:22 +0000
commite6e0ea3f041e0273cdac86da663a4a273e1beebb (patch)
tree66df434db2d1fe2bbe1e8439721789d4f8cf7297 /repoze/bfg/tests/test_traversal.py
parent13437c304ddb8812244c8e2131888efa68297d73 (diff)
downloadpyramid-e6e0ea3f041e0273cdac86da663a4a273e1beebb.tar.gz
pyramid-e6e0ea3f041e0273cdac86da663a4a273e1beebb.tar.bz2
pyramid-e6e0ea3f041e0273cdac86da663a4a273e1beebb.zip
- 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).
Diffstat (limited to 'repoze/bfg/tests/test_traversal.py')
-rw-r--r--repoze/bfg/tests/test_traversal.py6
1 files changed, 3 insertions, 3 deletions
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',))