'Check if the get_info returned values correspond to the instance
object in the db.'

def _check_vm_info(self, info, pwr_state=power_state.RUNNING):

    mem_kib = (int(self.type_data['memory_mb']) << 10)
    self.assertEqual(info.state, pwr_state)
    self.assertEqual(info.max_mem_kb, mem_kib)
    self.assertEqual(info.mem_kb, mem_kib)
    self.assertEqual(info.num_cpu, self.type_data['vcpus'])
