'Test remove role of staff of master course on ccx course without
sending enrollment email.'

def test_remove_master_course_staff_from_ccx_no_email(self):

    staff = self.make_staff()
    self.assertTrue(CourseStaffRole(self.course.id).has_user(staff))
    instructor = self.make_instructor()
    self.assertTrue(CourseInstructorRole(self.course.id).has_user(instructor))
    outbox = self.get_outbox()
    self.assertEqual(len(outbox), 0)
    remove_master_course_staff_from_ccx(self.course, self.ccx_locator, self.ccx.display_name, send_email=False)
    self.assertEqual(len(outbox), 0)
