'Returns Ext Resources.'

def get_resources(self):

    resources = []
    fake_plugin = FakePlugin()
    for collection_name in self.RESOURCE_ATTRIBUTE_MAP:
        resource_name = collection_name[:(-1)]
        params = self.RESOURCE_ATTRIBUTE_MAP.get(collection_name, {})
        member_actions = {'put_meh': 'PUT', 'boo_meh': 'GET'}
        if (collection_name == self.HYPHENATED_COLLECTION):
            collection_name = collection_name.replace('_', '-')
        controller = base.create_resource(collection_name, resource_name, fake_plugin, params, allow_bulk=True, allow_pagination=True, allow_sorting=True, member_actions=member_actions)
        resource = extensions.ResourceExtension(collection_name, controller, attr_map=params)
        resources.append(resource)
    for collection_name in self.SUB_RESOURCE_ATTRIBUTE_MAP:
        resource_name = collection_name[:(-1)]
        parent = self.SUB_RESOURCE_ATTRIBUTE_MAP[collection_name].get('parent')
        params = self.SUB_RESOURCE_ATTRIBUTE_MAP[collection_name].get('parameters')
        controller = base.create_resource(collection_name, resource_name, fake_plugin, params, allow_bulk=True, parent=parent)
        resource = extensions.ResourceExtension(collection_name, controller, parent, path_prefix='', attr_map=params)
        resources.append(resource)
    return resources
