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