'Form description field fails spam validation'

@mock.patch.object(ClassifierValidator, '__call__')
def test_form_spam(self, mocked_validator):

    mocked_validator.side_effect = ProjectSpamError
    data = {'description': 'foo', 'documentation_type': 'sphinx', 'language': 'en'}
    form = ProjectExtraForm(data)
    with self.assertRaises(ProjectSpamError):
        form.is_valid()
