'Verify that we are on the correct team list page.
Arguments:
teams_page (BaseTeamsPage): The teams page object that should be the current page.
page_num (int): The one-indexed page number that we expect to be on
total_teams (list): An unsorted list of all the teams for the
current topic
pagination_header_text (str): Text we expect to see in the
pagination header.
footer_visible (bool): Whether we expect to see the pagination
footer controls.'

def verify_on_page(self, teams_page, page_num, total_teams, pagination_header_text, footer_visible):

    sorted_teams = self.teams_with_default_sort_order(total_teams)
    self.assertTrue(teams_page.get_pagination_header_text().startswith(pagination_header_text))
    self.verify_teams(teams_page, sorted_teams[((page_num - 1) * self.TEAMS_PAGE_SIZE):(page_num * self.TEAMS_PAGE_SIZE)])
    self.assertEqual(teams_page.pagination_controls_visible(), footer_visible, msg=(('Expected    paging    footer    to    be    ' + 'visible') if footer_visible else 'invisible'))
