Пример #1
0
def test_full_url(request):
    request.urlparts.scheme = 'https'
    request.urlparts.hostname = 'foo'
    request.urlparts.port = 9000
    assert mod.full_url('/bar/baz') == 'https://foo:9000/bar/baz'
Пример #2
0
def test_full_url(request):
    request.urlparts.scheme = 'http'
    request.urlparts.hostname = 'foo'
    request.urlparts.port = None
    assert mod.full_url('/') == 'http://foo/'
Пример #3
0
def test_full_url(request):
    request.urlparts.scheme = 'https'
    request.urlparts.hostname = 'foo'
    request.urlparts.port = 9000
    assert mod.full_url('/bar/baz') == 'https://foo:9000/bar/baz'
Пример #4
0
def test_full_url(request):
    request.urlparts.scheme = 'http'
    request.urlparts.hostname = 'foo'
    request.urlparts.port = None
    assert mod.full_url('/') == 'http://foo/'
Пример #5
0
def test_full_url(request):
    request.urlparts.scheme = "https"
    request.urlparts.hostname = "foo"
    request.urlparts.port = 9000
    assert mod.full_url("/bar/baz") == "https://foo:9000/bar/baz"
Пример #6
0
def test_full_url(request):
    request.urlparts.scheme = "http"
    request.urlparts.hostname = "foo"
    request.urlparts.port = None
    assert mod.full_url("/") == "http://foo/"