def test_generate_signed_url(test_blob, cloud_config, capsys):
    snippets.generate_signed_url(
        cloud_config.storage_bucket,
        test_blob.name)

    out, _ = capsys.readouterr()
    url = out.rsplit().pop()

    r = requests.get(url)
    assert r.text == 'Hello, is it me you\'re looking for?'
def test_generate_signed_url(test_blob, capsys):
    snippets.generate_signed_url(
        BUCKET,
        test_blob.name)

    out, _ = capsys.readouterr()
    url = out.rsplit().pop()

    r = requests.get(url)
    assert r.text == 'Hello, is it me you\'re looking for?'
def test_generate_signed_url(test_blob, capsys):
    url = snippets.generate_signed_url(
        BUCKET,
        test_blob.name)

    r = requests.get(url)
    assert r.text == 'Hello, is it me you\'re looking for?'