changeset 609:ed593361022e pytest2

test added for contenttype_to_class() in themes/test_navi_bar
author pkumar <contactprashantat@gmail.com>
date Sat, 02 Jul 2011 00:04:47 +0530
parents 27dc049120b1
children 66b072c4ce8b
files MoinMoin/themes/_tests/test_navi_bar.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/_tests/test_navi_bar.py	Fri Jul 01 23:24:54 2011 +0530
+++ b/MoinMoin/themes/_tests/test_navi_bar.py	Sat Jul 02 00:04:47 2011 +0530
@@ -56,3 +56,7 @@
     test_result3 = themes.shorten_item_name(u'MoinMoin/some/value') 
     assert test_result3 == u'MoinMoin/some/value'    
 
+def test_contenttype_to_class():
+    test_result = themes.contenttype_to_class(u'MoinMoin/some/value')
+    expected = u'moin-mime-MoinMoin'    
+    assert test_result == expected