From 9367bc3288add64d775ddc5430bebeb0c627576e Mon Sep 17 00:00:00 2001 From: kakwa Date: Thu, 28 Jul 2016 07:32:12 +0200 Subject: [PATCH] fix unit tests --- tests/test_LdapCherry.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_LdapCherry.py b/tests/test_LdapCherry.py index 9c0f4bd..b91aa24 100644 --- a/tests/test_LdapCherry.py +++ b/tests/test_LdapCherry.py @@ -2,7 +2,6 @@ # -*- coding: utf-8 -*- from __future__ import with_statement -from __future__ import unicode_literals import pytest import sys @@ -159,7 +158,7 @@ class TestError(object): loadconf('./tests/cfg/ldapcherry_test.ini', app) app.auth_mode = 'or' try: - app.login('jwatsoné', 'passwordwatsoné') + app.login(u'jwatsoné', u'passwordwatsoné') except cherrypy.HTTPRedirect as e: expected = 'http://127.0.0.1:8080/' assert e[0][0] == expected @@ -171,7 +170,7 @@ class TestError(object): loadconf('./tests/cfg/ldapcherry_test.ini', app) app.auth_mode = 'or' try: - app.login('jwatsoné', 'wrongPasswordé') + app.login(u'jwatsoné', u'wrongPasswordé') except cherrypy.HTTPRedirect as e: expected = 'http://127.0.0.1:8080/signin' assert e[0][0] == expected