()
| 29 | |
| 30 | |
| 31 | def 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( |
nothing calls this directly
no test coverage detected