Esempio n. 1
0
 def test_password_change_correct(self):
     form_data = {
         'old_password': '******',
         'new_password': '******',
         'confirm_password': '******',
     }
     form = ProfilePasswordChangeForm(data=form_data, )
     self.assertEqual(form.is_valid(), True)
Esempio n. 2
0
 def test_password_change_incorrect(self):
     form_data = {
         'old_password': '******',
         'new_password': '******',
         'confirm_password': '******',
     }
     form = ProfilePasswordChangeForm(data=form_data, )
     self.assertEqual(form.is_valid(), False)
Esempio n. 3
0
 def test_password_change_correct(self):
     form_data = {
         'old_password': '******',
         'new_password': '******',
         'confirm_password': '******',
     }
     form = ProfilePasswordChangeForm(
         data=form_data,
     )
     self.assertEqual(form.is_valid(), True)
Esempio n. 4
0
 def test_password_change_incorrect(self):
     form_data = {
         'old_password': '******',
         'new_password': '******',
         'confirm_password': '******',
     }
     form = ProfilePasswordChangeForm(
         data=form_data,
     )
     self.assertEqual(form.is_valid(), False)