def register_resources(self, **resources):
for key, resource in resources.items():<EOL><INDENT>if key in self._resources:<EOL><INDENT>raise AlreadyExistsException('<STR_LIT>'.format(key))<EOL><DEDENT>self._init_resource(key, resource)<EOL><DEDENT>
Register resources with the ResourceManager.