'Set this test\'s user to have the given role in its
discussions. Role is one of \'Community TA\', \'Moderator\',
\'Administrator\', or \'Student\'.'

def setup_discussion_user(self, role=None, staff=False):

    kwargs = {'course_id': self.course_id, 'staff': staff}
    if (role is not None):
        kwargs['roles'] = role
    self.user_info = AutoAuthPage(self.browser, **kwargs).visit().user_info
