def METHOD_NAME(self):
    """
    Test that ``RegistrationFormNoFreeEmail`` disallows
    registration with free email addresses.
    """
    base_data = {'username': 'foo',
                 'password1': 'foo',
                 'password2': 'foo'}
    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)
        self.failIf(form.is_valid())
        self.assertEqual(form.errors['email'],
                         [u"Registration using free email addresses is prohibited. Please supply a different email address."])
    base_data['email'] = 'foo@example.com'
    form = forms.RegistrationFormNoFreeEmail(data=base_data)
    self.failUnless(form.is_valid())