[tests] modification du prototype de attrify
This commit is contained in:
parent
9adc0b7732
commit
b9f9096077
2 changed files with 28 additions and 30 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
import unittest
|
||||
|
||||
from lc_ldap import *
|
||||
from lc_ldap import attrify, lc_ldap_test
|
||||
|
||||
class LDAPTest(unittest.TestCase):
|
||||
"""Classe de base pour les tests nécessitant la base LDAP"""
|
||||
|
@ -40,4 +40,6 @@ class LDAPTest(unittest.TestCase):
|
|||
"""Déclare une connexion à la base LDAP de tests"""
|
||||
self.ldap = lc_ldap_test()
|
||||
|
||||
|
||||
def attrify_light(self, val, champ):
|
||||
"""Transforme une valeur en objet Attr avec un LDIF minimaliste"""
|
||||
return attrify(val, champ, {champ: [val]}, self.ldap)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue