changeset 606:caf03e340f75 pytest2

added test for location_breadcrumbs in themes/test_navi_bar
author pkumar <contactprashantat@gmail.com>
date Fri, 01 Jul 2011 12:32:16 +0530
parents 04b90498ea47
children e9c80fcc5ae5
files MoinMoin/themes/_tests/test_navi_bar.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/_tests/test_navi_bar.py	Fri Jul 01 10:18:38 2011 +0530
+++ b/MoinMoin/themes/_tests/test_navi_bar.py	Fri Jul 01 12:32:16 2011 +0530
@@ -12,7 +12,6 @@
 from MoinMoin._tests import wikiconfig
 from MoinMoin.themes import ThemeSupport
 
-
 class TestNaviBar(object):
     class Config(wikiconfig.Config):
         interwiki_map = dict(MoinMoin='http://moinmo.in/', )
@@ -35,3 +34,9 @@
             result = self.theme.split_navilink(navilink)
             assert result == expected
 
+    def test_location_breadcrumbs(self):
+        test_result = ThemeSupport.location_breadcrumbs(self.theme, 'test_item')
+        test_segment_name, test_item_name, test_item_exists = test_result[0]
+        assert test_segment_name == 'test_item'
+        assert test_item_name == 'test_item'
+