def METHOD_NAME(self, origurl):
    """Return parser callback function."""
    def callback(url, line, column, name, base):
        self.count_url += 1
        self.assertEqual(origurl, url)
    return callback