'Logout and login with given credentials.'

def _auto_auth(self, username, email, staff):

    self.logout_page.visit()
    AutoAuthPage(self.browser, username=username, email=email, course_id=self.course_id, staff=staff).visit()
