

def testApproveSignals(self):

    def receive(sender, **kwargs):
        received_signals.append(kwargs.get('signal'))
    received_signals = []
    signals.comment_was_flagged.connect(receive)
    self.testApprovePost()
    self.assertEqual(received_signals, [signals.comment_was_flagged])

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py ApproveViewTests.testApproveSignals/original