'Ensure that when vcpus == 0 (which happens when a node is disabled),
that get_inventory() returns an empty dict.'

@mock.patch.object(ironic_driver.IronicDriver, '_node_resource')
@mock.patch.object(ironic_driver.IronicDriver, '_node_from_cache')
def test_get_inventory_disabled_node(self, mock_nfc, mock_nr):

    mock_nr.return_value = {'vcpus': 0, 'memory_mb': 0, 'local_gb': 0, 'resource_class': None}
    result = self.driver.get_inventory(mock.sentinel.nodename)
    mock_nfc.assert_called_once_with(mock.sentinel.nodename)
    mock_nr.assert_called_once_with(mock_nfc.return_value)
    self.assertEqual({}, result)
