'Authenticate, enrolling the user in the configured course if requested.'

def auth(self, enroll=True):

    CourseFixture(**self.course_info).install()
    course_id = (self.course_id if enroll else None)
    auth_page = AutoAuthPage(self.browser, course_id=course_id)
    auth_page.visit()
    self.username = auth_page.user_info['username']
