Esempio n. 1
0
 def test_school_not_valid(self):
     data = {
         "username": "******",
         "email": "*****@*****.**",
         "first_name": "donald",
         "last_name": "trump",
         "Phone": "1234567890",
         "department": "Computer Science",
         "password1": "Pass12345",
         "password2": "Pass12345",
     }
     form = UserSignUpForm(data=data)
     self.assertFalse(form.is_valid())
Esempio n. 2
0
 def test_department_not_valid(self):
     data = {
         "username": "******",
         "email": "*****@*****.**",
         "first_name": "donald",
         "last_name": "trump",
         "Phone": "1234567890",
         "school": "Tandon School of Engineering",
         "password1": "Pass12345",
         "password2": "Pass12345",
     }
     form = UserSignUpForm(data=data)
     self.assertFalse(form.is_valid())