def test_create_enrollment(self): # Enrolling Ryan Paulos into the accreditation course with 'Employee' permissions req = UserManager.create_enrollment(12, 15, 'TeacherEnrollment', 13) self.assertEqual(200, req.status_code)
def setUp(self): CouncilConnect.init_session() TestUser.user = user.User(3081, 'test osterone', '@!!$testosteroni', '*****@*****.**') UserManager.create_enrollment(3081, 15, 'TeacherEnrollment', '13') UserManager.create_enrollment(3081, 1, 'TeacherEnrollment', '13')