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"""