def testPingSuccess(self):
        title = 'Backlinks Test - Test Good Source Document'
        excerpt = 'This is a summary of the good source document'
        params = {'url': 'http://example.com/good-source-document/', 'title': title, 'excerpt': excerpt}
        track_target = '/trackback/member/'+self.PINGABLE_MEMBER_ID+'/'
        response = self.trackbackPOSTRequest(track_target,
                                             params)
        self.assertTrue(response.content.find('<error>0</error>') > -1,
                        'Server did not return success response for a valid ping request')
        registered_ping = InboundBacklink.objects.get(source_url='http://example.com/good-source-document/',
                                                      target_url='http://example.com'+self.mk_1.get_absolute_url())
        self.assertEquals(registered_ping.title,
                          title,
                          'Server did not use title from ping request when registering')
        self.assertEquals(registered_ping.excerpt,
                          excerpt,
                          'Server did not use excerpt from ping request when registering')
dataset/ETHPy150Open ofri/Open-Knesset/mks/tests.py/MemberBacklinksViewsTest.testPingSuccess/original