diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py
index d911f03..7853894 100644
--- a/tests/test_pagure_flask_ui_app.py
+++ b/tests/test_pagure_flask_ui_app.py
@@ -149,7 +149,8 @@ class PagureFlaskApptests(tests.Modeltests):
with tests.user_set(pagure.APP, user):
output = self.app.get('/new/')
self.assertEqual(output.status_code, 200)
- self.assertIn('Create new Project', output.data)
+ self.assertIn(
+ u'Create new Project', output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -160,9 +161,10 @@ class PagureFlaskApptests(tests.Modeltests):
output = self.app.post('/new/', data=data)
self.assertEqual(output.status_code, 200)
- self.assertIn('Create new Project', output.data)
self.assertIn(
- '\n This field is required. \n'
+ u'Create new Project', output.data)
+ self.assertIn(
+ u'\n This field is required. \n'
' ', output.data)
data['name'] = 'project-1'
@@ -170,7 +172,7 @@ class PagureFlaskApptests(tests.Modeltests):
self.assertEqual(output.status_code, 200)
self.assertIn('Create new Project', output.data)
self.assertNotIn(
- '\n This field is required. \n'
+ u'\n This field is required. \n'
' ', output.data)
data['csrf_token'] = csrf_token
@@ -178,7 +180,7 @@ class PagureFlaskApptests(tests.Modeltests):
self.assertEqual(output.status_code, 200)
self.assertIn('Create new Project', output.data)
self.assertIn(
- '\n No user '
+ u'\n No user '
'"username" found\n ',
output.data)
@@ -188,11 +190,11 @@ class PagureFlaskApptests(tests.Modeltests):
output = self.app.post('/new/', data=data, follow_redirects=True)
self.assertEqual(output.status_code, 200)
self.assertIn(
- '
This repo is brand new!
', output.data) self.assertIn( - '\n Project "project-1" created', - output.data) + u'