def validate_course_run_id(self, value):
enterprise_customer = self.context.get('<STR_LIT>')<EOL>if not enterprise_customer.catalog_contains_course(value):<EOL><INDENT>raise serializers.ValidationError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(<EOL>course_run_id=value,<EOL>enterprise_customer=enterprise_customer.name,<EOL>)<EOL>)<EOL><DEDENT>return value<EOL>
Validates that the course run id is part of the Enterprise Customer's catalog.