'Don\'t add project on a spammy description'

@patch('readthedocs.projects.views.private.ProjectExtraForm.clean_description', create=True)
def test_form_spam(self, mocked_validator):

    self.user.date_joined = (datetime.now() - timedelta(days=365))
    self.user.save()
    mocked_validator.side_effect = ProjectSpamError
    with self.assertRaises(Project.DoesNotExist):
        proj = Project.objects.get(name='foobar')
    resp = self.post_step('basics')
    self.assertWizardResponse(resp, 'extra')
    resp = self.post_step('extra', session=list(resp._request.session.items()))
    self.assertIsInstance(resp, HttpResponseRedirect)
    self.assertEqual(resp.status_code, 302)
    self.assertEqual(resp['location'], '/')
    with self.assertRaises(Project.DoesNotExist):
        proj = Project.objects.get(name='foobar')
    self.assertFalse(self.user.profile.banned)
