def testWillBePostedSignal(self):
        def receive(sender, **kwargs): return False
        signals.comment_will_be_posted.connect(receive)
        a = Article.objects.get(pk=1)
        data = self.getValidData(a)
        response = self.client.post("/post/", data)
        self.assertEqual(response.status_code, 400)
        self.assertEqual(Comment.objects.count(), 0)
Handle updates of an item.
dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/comment_tests/tests/comment_view_tests.py/CommentViewTests.testWillBePostedSignal--crossover with--dataset/ETHPy150Open gmr/tinman/tinman/handlers/mixins.py/ModelAPIMixin.put