def test_json_filter_fails_on_disk(self):
        spec_obj = objects.RequestSpec(
            flavor=objects.Flavor(memory_mb=1024,
                                  root_gb=200,
                                  ephemeral_gb=0),
            scheduler_hints=dict(query=[self.json_query]))
        host = fakes.FakeHostState('host1', 'node1',
                {'free_ram_mb': 1024,
                 'free_disk_mb': (200 * 1024) - 1})
        self.assertFalse(self.filt_cls.host_passes(host, spec_obj))
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/scheduler/filters/test_json_filters.py/TestJsonFilter.test_json_filter_fails_on_disk/original