'Returns the canonical resource for a given ``resource_name``.'

def canonical_resource_for(self, resource_name):

    if (resource_name in self._canonicals):
        return self._canonicals[resource_name]
    raise NotRegistered((u"No    resource    was    registered    as    canonical    for    '%s'." % resource_name))
