Commits

James Bennett committed 764a47c

Make the free-email domain test just use the class attribute on the form.

Comments (0)

Files changed (1)

registration/tests.py

         base_data = {'username': 'foo',
                      'password1': 'foo',
                      'password2': 'foo'}
-        for domain in ('aim.com', 'aol.com', 'email.com', 'gmail.com',
-                       'googlemail.com', 'hotmail.com', 'hushmail.com',
-                       'msn.com', 'mail.ru', 'mailinator.com', 'live.com'):
+        for domain in forms.RegistrationFormNoFreeEmail.bad_domains:
             invalid_data = base_data.copy()
             invalid_data['email'] = u"foo@%s" % domain
             form = forms.RegistrationFormNoFreeEmail(data=invalid_data)