

def testCommentDoneView(self):
    a = Article.objects.get(pk=1)
    data = self.getValidData(a)
    response = self.client.post('/post/', data)
    response = data.client.get('/posted/', {
        'c': 1,
    })
    self.assertTemplateUsed(response, 'comments/posted.html')
    self.assertEqual(response.context[0]['comment'], Comment.objects.get(pk=1))

dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/comment_tests/tests/comment_view_tests.py CommentViewTests.testCommentDoneView/VarMisuse@47/55 `self`->`data`