def setUp(self): """ Set up test variables """ super(CCXCourseGroupTest, self).setUp() self.global_admin = AdminFactory() self.staff = User.objects.create_user('teststaff', '*****@*****.**', 'foo') self.ccx_course_key = CCXLocator.from_string('ccx-v1:edX+DemoX+Demo_Course+ccx@1') add_users(self.global_admin, CourseStaffRole(self.ccx_course_key), self.staff)
def setUp(self): """ Set up test variables """ super(CCXCourseGroupTest, self).setUp() self.global_admin = AdminFactory() self.staff = User.objects.create_user('teststaff', '*****@*****.**', 'foo') self.ccx_course_key = CCXLocator.from_string('ccx-v1:edX+DemoX+Demo_Course+ccx@1') add_users(self.global_admin, CourseStaffRole(self.ccx_course_key), self.staff)
def setUp(self): """ Set up test variables """ super().setUp() self.global_admin = AdminFactory() self.staff = UserFactory.create(username='******', email='*****@*****.**', password='******') self.ccx_course_key = CCXLocator.from_string( 'ccx-v1:edX+DemoX+Demo_Course+ccx@1') add_users(self.global_admin, CourseStaffRole(self.ccx_course_key), self.staff)