

def testCommentNext(self):
    'Test the different "next" actions the comment view can take'
    a = Article.objects.get(pk=1)
    data = self.getValidData(data)
    response = self.client.post('/post/', data)
    self.assertEqual(response['Location'], 'http://testserver/posted/?c=1')
    data['next'] = '/somewhere/else/'
    data['comment'] = 'This is another comment'
    response = self.client.post('/post/', data)
    self.assertEqual(response['Location'], 'http://testserver/somewhere/else/?c=2')

dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/comment_tests/tests/comment_view_tests.py CommentViewTests.testCommentNext/VarMisuse@31/58 `a`->`data`