def test_invalid_email_validation(self):
    startTime = timezone.now()
    department = Department.objects.create(name='test department')
    user = User.objects.create(username='test', email='example@example.com')
    faculty = Faculty.objects.create(user=user, dob=startTime, department=department)
    form = FacultySignupForm(data={'username': 'test1', 'email': 'example@example.com', 'dob': startTime, 'department': department})
    self.assertFalse(form.is_valid())
def test_invalid_email_validation(self):
    startTime = timezone.now()
    department = Department.objects.create(name='test department')
    user = User.objects.create(username='test', email='example@example.com')
    faculty = Faculty.objects.create(user=user, dob=startTime, department=department)
    form = FacultySignupForm(data={'username': 'test1', 'email': 'example@example.com', 'dob': startTime, 'department': department})
    self.assertFalse(form.is_valid())