def test_commute_search_sample(capsys):
    import commute_search_sample
    import re

    commute_search_sample.run_sample()
    out, _ = capsys.readouterr()
    expected = ('.*matchingJobs.*1600 Amphitheatre Pkwy.*')
    assert re.search(expected, out)
 def eventually_consistent_test():
     commute_search_sample.run_sample(company_name)
     out, _ = capsys.readouterr()
     expected = ('.*matchingJobs.*1600 Amphitheatre Pkwy.*')
     assert re.search(expected, out)