'Scenario: The user should be able to page through a topic\'s team list
using the page input when it is longer than the page size.
Given I am enrolled in a course with a team configuration and a topic
When I visit the Teams page for that topic
Then I should see the correct page header
And I should see that I am on the first page of results
When I input the second page
Then I should see that I am on the second page of results
When I input the first page
Then I should see that I am on the first page of results'

def test_teams_page_input(self):

    teams = self.create_teams(self.topic, (self.TEAMS_PAGE_SIZE + 10), time_between_creation=1)
    self.browse_teams_page.visit()
    self.verify_page_header()
    self.verify_on_page(self.browse_teams_page, 1, teams, 'Showing    1-10    out    of    20    total', True)
    self.browse_teams_page.go_to_page(2)
    self.verify_on_page(self.browse_teams_page, 2, teams, 'Showing    11-20    out    of    20    total', True)
    self.browse_teams_page.go_to_page(1)
    self.verify_on_page(self.browse_teams_page, 1, teams, 'Showing    1-10    out    of    20    total', True)
