Exemplo n.º 1
0
def test__action_url_action_type():
    sdcResource = SdcResource()
    url = sdcResource._action_url("base",
                                  "subpath",
                                  "version_path",
                                  action_type="distribution")
    assert url == "base/resources/version_path/distribution/subpath"
Exemplo n.º 2
0
def test__action_url_no_action_type():
    sdcResource = SdcResource()
    url = sdcResource._action_url("base", "subpath", "version_path")
    assert url == "base/resources/version_path/lifecycleState/subpath"