def test_get_registry_url_official(image): ret = Containers.get_registry_url(image) assert ret == 'https://index.docker.io/v1/'
def test_get_registry_url_custom(): image = 'cloud.canister.io:5000/repository/image' ret = Containers.get_registry_url(image) assert ret == 'cloud.canister.io:5000'