'Scenario: browsing topics should not respond to invalid page numbers
Given I am enrolled in a course with team configuration and topics
When I visit the Teams page
And I browse topics
And I enter an invalid page number in the page number input
Then I should stay on the current page'

def test_go_to_invalid_page(self):

    self.set_team_configuration({u'max_team_size': 10, u'topics': self.create_topics(13)})
    self.topics_page.visit()
    self.topics_page.go_to_page(3)
    self.assertEqual(self.topics_page.get_current_page_number(), 1)
