示例#1
0
def verify_all_entries(step, added_name, present_one, present_two):
    """
    Checks that added card is present along with previous entries.
    """
    names = [added_name, present_one, present_two]
    names_found = [detect_name_in_index(name) for name in names]
    all_found = reduce(lambda x, y: x and y, names_found)
    assert all_found
示例#2
0
def no_longer_see_card(step, url, name):
    """
    Verifies that card is no longer prsent.
    """
    full_url = django_url(url)
    update_response(full_url)
    found = detect_name_in_index(name)
    assert not found