def test_search_for_experiments_joins_with_a_comma_and_a_space(): expected = ( '<a href="/search?p=experiment_name:foo&cc=Experiments">foo</a>, ' '<a href="/search?p=experiment_name:bar&cc=Experiments">bar</a>') result = search_for_experiments(['foo', 'bar']) assert expected == result
def test_search_for_experiments_joins_with_a_comma_and_a_space(): expected = ( '<a href="/search?p=experiment_name:foo&cc=Experiments">foo</a>, ' '<a href="/search?p=experiment_name:bar&cc=Experiments">bar</a>' ) result = search_for_experiments(['foo', 'bar']) assert expected == result
def test_search_for_experiments_returns_a_link_on_a_list_of_one_element(): expected = '<a href="/search?p=experiment_name:foo&cc=Experiments">foo</a>' result = search_for_experiments(['foo']) assert expected == result
def test_search_for_experiments_returns_empty_string_on_empty_list(): expected = '' result = search_for_experiments([]) assert expected == result
def test_search_for_experiments_returns_a_link_on_a_list_of_one_element(): expected = '<a href="/search?p=experiment_name:foo&cc=Experiments">foo</a>' result = search_for_experiments(['foo']) assert expected == result
def test_search_for_experiments_returns_empty_string_on_empty_list(): expected = '' result = search_for_experiments([]) assert expected == result