def go_to_admin_map_page_failure(self): self._go_to_admin_map_page() return ForbiddenPage(self.browser)
def login_to_forbidden(self, username, password): self._login(username, password) from portal.tests.pageObjects.portal.forbidden_page import ForbiddenPage return ForbiddenPage(self.browser)
def go_to_admin_data_page_failure(self): url = (self.live_server_url + reverse('aggregated_data')) self.browser.get(url) return ForbiddenPage(self.browser)