From 17fae2b1a2b3338f8123743ed638ef55eb195ce8 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 16 Oct 2010 17:53:32 +0200 Subject: [PATCH] =?UTF-8?q?[attributs=5Ftests]=20Tests=20sur=20les=20carac?= =?UTF-8?q?t=C3=A8res=20sp=C3=A9ciaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/attributs_tests.py b/attributs_tests.py index 10bc97e..b595d82 100644 --- a/attributs_tests.py +++ b/attributs_tests.py @@ -50,6 +50,7 @@ class nomTest(LDAPTest): attrify_light(u"Space Man", "nom") self.assertRaises(Exception, attrify_light, "Stringman", "nom") self.assertRaises(Exception, attrify_light, u" Spaceman", "nom") + self.assertRaises(Exception, attrify_light, u"Spéciaux!?", "nom") class prenomTest(LDAPTest): """Tests sur l'attribut prenom""" @@ -62,6 +63,7 @@ class prenomTest(LDAPTest): attrify_light(u"Charles Jean", "prenom") self.assertRaises(Exception, attrify_light, "String", "prenom") self.assertRaises(Exception, attrify_light, u" Space", "prenom") + self.assertRaises(Exception, attrify_light, u"Spéciaux!?", "prenom") class telTest(LDAPTest): """Tests sur l'attribut tel""" @@ -73,7 +75,7 @@ class telTest(LDAPTest): attrify_light(u"00 33 1 23 45 67 89", "tel") attrify_light(u"+42 (0) 1 23456789", "tel") self.assertRaises(Exception, attrify_light, "", "tel") - self.assertRaises(Exception, attrify_light, u"caracteres?!", "nom") + self.assertRaises(Exception, attrify_light, u"caracteres?!", "tel") def normalizeTel(self): """Normalise correctement les numéros de téléphone"""