

def test_main(cloud_config, capsys):
    main(cloud_config.project)
    (out, _) = capsys.readouterr()
    assert re.search(re.compile('Query Results:.hamlet', re.DOTALL), out)

dataset/ETHPy150Open GoogleCloudPlatform/python-docs-samples/bigquery/api/getting_started_test.py test_main/original