'Testing if the entered course was deleted'

def test_course_deleted(self):

    course_key = CourseKey.from_string('/'.join(['TestX', 'TS01', '2015_Q1']))
    self.assertIsNotNone(modulestore().get_course(course_key))
    with mock.patch(self.YESNO_PATCH_LOCATION) as patched_yes_no:
        patched_yes_no.return_value = True
        call_command('delete_course', 'TestX/TS01/2015_Q1')
        self.assertIsNone(modulestore().get_course(course_key))
