We should set return_value=1 for compareCPU hook.
Otherwise we'll get an exception InvalidCPUInfo:
CPU doesn't have compatibility
Change-Id: Id9313eb46084e60cf0c7f5a77fe9a8a7dc86b8fb
Closes-Bug: #
1634962
self.flags(vncserver_listen='192.0.2.12', group='vnc')
self.flags(server_listen='198.51.100.34', group='spice')
self.flags(proxyclient_address='203.0.113.56', group='serial_console')
+ mock_cpu.return_value = 1
instance_ref = objects.Instance(**self.test_instance)
instance_ref.vcpu_model = test_vcpu_model.fake_vcpumodel