def topics_in_list(step): topic_names = [topic_dict['name'] for topic_dict in step.hashes] world.assert_list_equals('ul.topics li', topic_names)
def see_stories_list(step): story_titles = [row['title'] for row in step.hashes] world.assert_list_equals('.story-list li h4', story_titles)