def test_search():
    l = Slist()
    l.prepend("Bob")
    l.prepend("Amy")
    l.prepend("Carol")
    found = l.contains("Bob")
    assert found is True
    found = l.contains("Amy")
    assert found is True
    found = l.contains("Bob")
    assert found is True

    l = Slist()
    l.prepend("Bob")
    l.prepend("Amy")
    found = l.contains("Bob")
    assert found is True
    found = l.contains("Dave")
    assert found is False