def test_relevant_pages(): pages = relevant_pages("his dad") assert all((x in pages) for x in ['A', 'C', 'E']) assert all((x not in pages) for x in ['B', 'D', 'F']) pages = relevant_pages("mom and dad") assert all((x in pages) for x in ['A', 'B', 'C', 'D', 'E', 'F']) pages = relevant_pages("philosophy") assert all((x not in pages) for x in ['A', 'B', 'C', 'D', 'E', 'F'])
def test_relevant_pages(): pages = relevant_pages("his dad") assert all((x in pages) for x in ['A', 'C', 'E']) assert all((x not in pages) for x in ['B', 'D', 'F']) pages = relevant_pages("mom and dad") assert all((x in pages) for x in ['A', 'B', 'C', 'D', 'E', 'F']) pages = relevant_pages("philosophy") assert all((x not in pages) for x in ['A', 'B', 'C', 'D', 'E', 'F'])
def test_relevant_pages(): pages = relevant_pages("male") assert all((x in pages.keys()) for x in ['A', 'C', 'E']) assert all((x not in pages) for x in ['B', 'D', 'F'])
def test_relevant_pages(): pages = relevant_pages("male") assert all((x in pages.keys()) for x in ['A', 'C', 'E']) assert all((x not in pages) for x in ['B', 'D', 'F'])