'Tests adding user to course group (happy path).'

def test_add_user_to_course_group(self):

    self.assertFalse(user_has_role(self.creator, CourseInstructorRole(self.course_key)))
    add_users(self.global_admin, CourseInstructorRole(self.course_key), self.creator)
    add_users(self.global_admin, CourseStaffRole(self.course_key), self.creator)
    self.assertTrue(user_has_role(self.creator, CourseInstructorRole(self.course_key)))
    self.assertFalse(user_has_role(self.staff, CourseStaffRole(self.course_key)))
    add_users(self.creator, CourseStaffRole(self.course_key), self.staff)
    self.assertTrue(user_has_role(self.staff, CourseStaffRole(self.course_key)))
