Commits

Bruno Clermont  committed 370d9c5

do not use invalid_data_dicts to test valid ones!

  • Participants
  • Parent commits d7b0aaa

Comments (0)

Files changed (1)

File registration/tests/forms.py

              'password1': 'secret2',
              'password2': 'secret2'},
             ]
-        for invalid_dict in invalid_data_dicts:
-            form = forms.RegistrationForm(data=invalid_dict)
+        for valid_dict in valid_data_dicts:
+            form = forms.RegistrationForm(data=valid_dict)
             self.failUnless(form.is_valid())
 
     def test_registration_form_tos(self):