[*] on a fait marcher et on teste la création de compte (reste les services)
This commit is contained in:
parent
27ed937c5f
commit
4178ad26ee
4 changed files with 32 additions and 20 deletions
|
@ -46,7 +46,7 @@ class LDAPTest(unittest.TestCase):
|
|||
|
||||
class AdherentTest(LDAPTest):
|
||||
"""Classe de test de la création d'un adhérent"""
|
||||
tests = ["creationAdherent"]
|
||||
tests = ["creationAdherent", "creationCompte"]
|
||||
|
||||
def creationAdherent(self):
|
||||
"""Crée un adhérent"""
|
||||
|
@ -57,6 +57,18 @@ class AdherentTest(LDAPTest):
|
|||
'chbre': [u"G001"],
|
||||
'mail': [u"dave.null@toto.example"],
|
||||
})
|
||||
self.ldap.delete_s(self.adherent.dn)
|
||||
|
||||
def creationCompte(self):
|
||||
self.adherent = self.ldap.newAdherent({
|
||||
'nom' : [u'McLellan'],
|
||||
'prenom' : [u'Stue'],
|
||||
'tel': [u'01 47 51 00 00'],
|
||||
'chbre': [u"G001"],
|
||||
'mail': [u'nobody@nowhere.example'],
|
||||
})
|
||||
self.adherent.compte(u'mclellan')
|
||||
self.ldap.delete_s(self.adherent.dn)
|
||||
|
||||
|
||||
def auto_suite(testcase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue