def test_dedup_and_title_case_names(): names = dedup_and_title_case_names(NAMES) assert names.count("Bob Belderbos") == 1 assert names.count("julian sequeira") == 0 assert names.count("Brad Pitt") == 1 assert len(names) == 10 assert all(n.title() in names for n in NAMES)
def test_dedup_and_title_case_names_different_names_list(): actual = sorted(dedup_and_title_case_names(PY_CONTENT_CREATORS)) expected = [ 'Brian Okken', 'Dan Bader', 'Julian Sequeira', 'Matt Harrison', 'Michael Kennedy', 'Trey Hunner' ] assert actual == expected
def test_dedup_and_title_case_names(): names = list(dedup_and_title_case_names(NAMES)) assert names.count('Bob Belderbos') == 1 assert names.count('julian sequeira') == 0 assert names.count('Brad Pitt') == 1 assert len(names) == 10 assert all(n.title() in names for n in NAMES)
def test_dedup_and_title_case_names_different_names_list(): actual = sorted(dedup_and_title_case_names(PY_CONTENT_CREATORS)) expected = [ "Brian Okken", "Dan Bader", "Julian Sequeira", "Matt Harrison", "Michael Kennedy", "Trey Hunner", ] assert actual == expected
def test_dedup_and_title_case(): expected = [ 'Arnold Schwarzenegger', 'Alec Baldwin', 'Bob Belderbos', 'Julian Sequeira', 'Sandra Bullock', 'Keanu Reeves', 'Julbob Pybites', 'Al Pacino', 'Brad Pitt', 'Matt Damon', ] result = dedup_and_title_case_names(NAMES) assert expected == result