def test_sort_by_surname(): expected = [ 'Julian Sequeira', 'Arnold Schwarzenegger', 'Keanu Reeves', 'Julbob Pybites', 'Brad Pitt', 'Al Pacino', 'Matt Damon', 'Sandra Bullock', 'Bob Belderbos', 'Alec Baldwin' ] result = sort_by_surname_desc(NAMES) assert expected == result
def test_sort_by_surname_desc(): names = sort_by_surname_desc(NAMES) assert names[0] == "Julian Sequeira" assert names[-1] == "Alec Baldwin"
def test_sort_by_surname_desc_different_names_list(): names = sort_by_surname_desc(PY_CONTENT_CREATORS) assert names[0] == 'Julian Sequeira' assert names[-1] == 'Dan Bader'
def test_sort_by_surname_desc(): result = sort_by_surname_desc(NAMES) assert result[-1] == 'Julian Sequeira' assert result[0] == 'Alec Baldwin'