def test_create_article_with_errors(self):
        view_url = '/create_update/create/article/'
        num_articles = Article.objects.count()
        response = self.client.post(view_url, {
            'title': 'My First Article',
        })
        self.assertFormError(response, 'form', 'slug', [u'This field is required.'])
        self.assertTemplateUsed(response, 'views/article_form.html')
        self.assertEqual(num_articles, Article.objects.count(),
                         "Number of Articles should not have changed.")
POSTs a form that contains validation errors.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/views/tests/generic/create_update.py/CreateObjectTest.test_create_article_with_errors