示例#1
0
def test_fetch_url_unicode(baseurl):
    res, data = fetch_url(urljoin(baseurl, "unicode"))
    assert res.status == 200
    assert data == u"Hello World!"
示例#2
0
def test_fetch_url(baseurl):
    res, data = fetch_url(urljoin(baseurl, "hello"))
    assert res.status == 200
    assert data == b"Hello World!"