add accents to tests
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 31 May 2010 16:00:04 +0000 (16:00 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 31 May 2010 16:00:04 +0000 (16:00 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@891 e071eeec-0327-468d-9b6a-08194a12b294

examples/tests.py

index 6d2f8c5b40b083e5c706f9b84d1c5596d352ef34..9755752da3c04cf384a812630e6ad04169266e52 100644 (file)
@@ -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')