'Create a Role in self.course with the given name and users'

def create_role(self, role_name, users, course=None):

    course = (course or self.course)
    role = Role.objects.create(name=role_name, course_id=course.id)
    role.users = users
