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"
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"