def test_get_docker_url_with_no_docker_image(): with raises(utils.NoDockerImageError): utils.get_docker_url('fake_registry', None)
def test_get_docker_url_no_error(): fake_registry = "im.a-real.vm" fake_image = "and-i-can-run:1.0" expected = "%s/%s" % (fake_registry, fake_image) assert utils.get_docker_url(fake_registry, fake_image) == expected