'Tests the case that init_host runs and there are no instances
on this host yet (it\'s brand new). Uses NonCallableMock for the
methods we assert should not be called.'

@mock.patch('nova.objects.InstanceList.get_by_host', return_value=objects.InstanceList())
@mock.patch('nova.compute.manager.ComputeManager._destroy_evacuated_instances')
@mock.patch('nova.compute.manager.ComputeManager._init_instance', mock.NonCallableMock())
@mock.patch('nova.compute.manager.ComputeManager._update_scheduler_instance_info', mock.NonCallableMock())
def test_init_host_no_instances(self, mock_destroy_evac_instances, mock_get_by_host):

    self.compute.init_host()
