'Verify that the list of team cards on the current page match the expected teams in order.'

def verify_teams(self, page, expected_teams):

    def assert_team_equal(expected_team, team_card_name, team_card_description):
        '\n                                                Helper    to    assert    that    a    single    team    card    has    the    expected    name    and\n                                                description.\n                                                '
        self.assertEqual(expected_team['name'], team_card_name)
        self.assertEqual(expected_team['description'], team_card_description)
    team_card_names = page.team_names
    team_card_descriptions = page.team_descriptions
    map(assert_team_equal, expected_teams, team_card_names, team_card_descriptions)
