[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/TraversalViews/tests - testAbsoluteURL.py:1.3

Jim Fulton jim@zope.com
Thu, 11 Jul 2002 15:33:58 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/TraversalViews/tests
In directory cvs.zope.org:/tmp/cvs-serv27871/lib/python/Zope/App/ZopePublication/TraversalViews/tests

Modified Files:
	testAbsoluteURL.py 
Log Message:
added breadcrumbs :)

=== Zope3/lib/python/Zope/App/ZopePublication/TraversalViews/tests/testAbsoluteURL.py 1.2 => 1.3 ===
         view = getView(content, 'absolute_url', request)
         self.assertEqual(str(view), 'http://foobar.com/a/b/c')
 
+        breadcrumbs = view.breadcrumbs()
+        self.assertEqual(breadcrumbs,
+                         ({'name':  '', 'url': 'http://foobar.com'},
+                          {'name': 'a', 'url': 'http://foobar.com/a'},
+                          {'name': 'b', 'url': 'http://foobar.com/a/b'},
+                          {'name': 'c', 'url': 'http://foobar.com/a/b/c'},
+                          ))
+                          
+
 def test_suite():
     return TestSuite((
         makeSuite(Test),