

def test_resources(self, usage, limits):
    "Test the ability to support the given instance.\n\n        Each resource plugin is called to determine if it's resource is able\n        to support the additional requirements of a new instance. The\n        plugins either return None to indicate they have sufficient resource\n        available or a human readable string to indicate why they can not.\n\n        :param usage: the additional resource usage\n        :param limits: limits used for the calculation\n\n        :returns: a list or return values from the plugins\n        "
    if (not self._mgr.extensions):
        return []
    reasons = self._mgr.map_method('test', usage, reasons)
    return reasons

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/compute/resources/__init__.py ResourceHandler.test_resources/VarMisuse@45/235 `limits`->`reasons`