def test_first_or_none():
    '\n    Assert that first_or_none returns the first item in an iterable or None\n    '
    assert (first_or_none([]) is None)
    assert (first_or_none(set()) is None)
    assert (first_or_none([1, 2, 3]) == 1)
    assert (first_or_none(range(1, 5)) == 1)
Assert that first_or_none returns the first item in an iterable or None
def test_first_or_none():
    '\n    \n    '
    assert (first_or_none([]) is None)
    assert (first_or_none(set()) is None)
    assert (first_or_none([1, 2, 3]) == 1)
    assert (first_or_none(range(1, 5)) == 1)