Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /ForgeDiscussion/forgediscussion/tests/functional/test_forum.py [43e3e8] .. [f34308] Maximize Restore

  Switch to side-by-side view

--- a/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
+++ b/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 import os
 import random
 import allura
@@ -294,6 +295,14 @@
         r = self.app.get('/admin/discussion/forums')
         assert 'childforum' in r
 
+    def test_unicode_name(self):
+        r = self.app.get('/admin/discussion/forums')
+        r.forms[1]['add_forum.shortname'] = u'téstforum'.encode('utf-8')
+        r.forms[1]['add_forum.name'] = u'Tést Forum'.encode('utf-8')
+        r.forms[1].submit()
+        r = self.app.get('/admin/discussion/forums')
+        assert u'téstforum'.encode('utf-8') in r
+
     def test_forum_search(self):
         r = self.app.get('/discussion/search')
         r = self.app.get('/discussion/search', params=dict(q='foo'))