Beispiel #1
0
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}"))
Beispiel #2
0
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}"))