'Sets team configuration on the course and calls auto-auth on the user.'

def set_team_configuration(self, configuration, enroll_in_course=True, global_staff=False):

    self.course_fixture = CourseFixture(**self.course_info)
    if configuration:
        self.course_fixture.add_advanced_settings({u'teams_configuration': {u'value': configuration}})
    self.course_fixture.install()
    enroll_course_id = (self.course_id if enroll_in_course else None)
    self.user_info = AutoAuthPage(self.browser, course_id=enroll_course_id, staff=global_staff).visit().user_info
    self.course_info_page.visit()
