def test_integration_custom_user(self): self.login(EmailUser) self.assertTrue( ElevateForm(self.request, self.user, { 'password': '******' }).is_valid())
def test_clean_password_valid_password(self): password = '******' self.assertEqual( ElevateForm(self.request, self.user, { 'password': password }).clean_password(), password)
def test_clean_password_secondary_auth_valid_password(self): password = '******' self.assertEqual( ElevateForm(self.request, self.user, { 'password': password }).clean_password(), password)
def test_clean_password_invalid_password(self): with self.assertRaises(ValidationError): ElevateForm(self.request, self.user, { 'password': '******' }).clean_password()
def test_integration_secondary_auth_valid_password(self): self.assertTrue( ElevateForm(self.request, self.user, { 'password': '******' }).is_valid())
def test_integration_valid_password(self): self.assertTrue( ElevateForm(self.request, self.user, { 'password': '******' }).is_valid())
def test_integration_invalid_password(self): self.assertFalse( ElevateForm(self.request, self.user, { 'password': '******' }).is_valid())
def test_integration_empty(self): self.assertFalse(ElevateForm(self.request, self.user).is_valid())