'Test used of a custom URL builder.'

def testURLCallback(self):

    from markdown.extensions.wikilinks import WikiLinkExtension
    def my_url_builder(label, base, end):
        return u'/bar/'
    md = markdown.Markdown(extensions=[WikiLinkExtension(build_url=my_url_builder)])
    self.assertEqual(md.convert(u'[[foo]]'), u'<p><a    class="wikilink"    href="/bar/">foo</a></p>')
