MCPcopy Create free account
hub / github.com/apache/mesos / test_resource

Function test_resource

src/python/lib/tests/test_http.py:31–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def test_resource():
32 # test initialization
33 resource = http.Resource('http://some.domain/some/prefix')
34 assert resource.url.geturl() == 'http://some.domain/some/prefix'
35
36 # test subresource
37 subresource = resource.subresource('some/subpath')
38 assert subresource.url.geturl() == \
39 'http://some.domain/some/prefix/some/subpath'
40
41
42@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

subresourceMethod · 0.95

Tested by

no test coverage detected