From: jlaine Date: Mon, 31 May 2010 16:00:04 +0000 (+0000) Subject: add accents to tests X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=adf0e789122e9362c67921492500edf844876219;p=matthijs%2Fupstream%2Fdjango-ldapdb.git add accents to tests git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@891 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/examples/tests.py b/examples/tests.py index 6d2f8c5..9755752 100644 --- a/examples/tests.py +++ b/examples/tests.py @@ -101,9 +101,9 @@ class UserTestCase(BaseTestCase): super(UserTestCase, self).setUp() u = LdapUser() - u.first_name = "Foo" - u.last_name = "User" - u.full_name = "Foo User" + u.first_name = u"Fôo" + u.last_name = u"Usér" + u.full_name = u"Fôo Usér" u.group = 1000 u.home_directory = "/home/foouser" @@ -114,9 +114,9 @@ class UserTestCase(BaseTestCase): def test_get(self): u = LdapUser.objects.get(username='foouser') - self.assertEquals(u.first_name, 'Foo') - self.assertEquals(u.last_name, 'User') - self.assertEquals(u.full_name, 'Foo User') + self.assertEquals(u.first_name, u'Fôo') + self.assertEquals(u.last_name, u'Usér') + self.assertEquals(u.full_name, u'Fôo Usér') self.assertEquals(u.group, 1000) self.assertEquals(u.home_directory, '/home/foouser')