

def test_cells_matching_hypervisor_version(self):
    image = {
        'properties': {
            'hypervisor_version_requires': '>6.0, <=6.3',
        },
    }
    self.filter_props['request_spec'] = {
        'image': image,
    }
    self.cell1.capabilities = {
        'prominent_hypervisor_version': set(['6.2']),
    }
    self.cell2.capabilities = {
        'prominent_hypervisor_version': set(['6.3']),
    }
    self.cell3.capabilities = {
        'prominent_hypervisor_version': set(['6.0']),
    }
    self.assertEqual([self.cell1, self.cell2], self._filter_cells(self.cells, self.filter_props))
    self.assertEqual([self.cell1, self.cell2], self._filter_cells(self.cells, self.filter_props))

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/cells/test_cells_filters.py ImagePropertiesFilter.test_cells_matching_hypervisor_version/original