Example #1
0
 def test_create_student_valide(self):
     """ here we test valid cases, an exception must not be raised
     """
     
     try:
         User.create_student(name=name, 
                                         email="*****@*****.**", u_email="*****@*****.**")
     except UserAlreadyExistError:
         self.fail("the exception has been raised while a unique user was\
          indeed created")
Example #2
0
 def setUp(self):
     super(TestUser, self).setUp()
     self.association = User.create_association(name=name, email=email)
     self.user = User.create_student(name=name, email="*****@*****.**", u_email=u_email)