def METHOD_NAME(self, execute_task):
    task = execute_task('test')
    # test with piratebay entry
    urlrewriter = self.get_urlrewriter('piratebay')
    entry = task.find_entry(title='tpb page')
    assert urlrewriter.url_rewritable(task, entry)
    entry = task.find_entry(title='tbp torrent')
    assert not urlrewriter.url_rewritable(
        task, entry
    ), 'TPB direct torrent link should not be url_rewritable'
    entry = task.find_entry(title='tbp apibay')
    assert urlrewriter.url_rewritable(task, entry)
    entry = task.find_entry(title='tbp torrent bad subdomain')
    assert not urlrewriter.url_rewritable(
        task, entry
    ), 'TPB link with invalid subdomain should not be url_rewritable'