def test_iri_template(): eq_(IRI(u'http://\u2603/value'), IRI.from_template(u'http://\N{SNOWMAN}/{var}', var='value')) eq_(IRI(u'http://\u2603/'), IRI.from_template(u'http://{domain}/', domain=u"\N{SNOWMAN}"))
def test_iri_template(): eq_(IRI(u'http://\u2603/value'), IRI.from_template(u'http://\N{SNOWMAN}/{var}', var='value')) eq_(IRI(u'http://\u2603/'), IRI.from_template(u'http://{domain}/', domain=u"\N{SNOWMAN}"))