def test_target_raises(bravado_spec, target): with pytest.raises(ValueError): _get_target_url(bravado_spec, target)
def test_target(bravado_spec, current_path, target, expected): assert _get_target_url(bravado_spec, target, current_path) \ == urlparse(expected)
def test_target(bravado_spec, current_path, target, expected): assert _get_target_url(bravado_spec, target, current_path) == urlparse(expected)