'Creates a cell0 and cell1 mapping but no host mappings and there are
compute nodes in the cell database.'

def test_check_no_host_mappings_with_computes(self):

    self._setup_cells()
    cn = objects.ComputeNode(context=context.get_admin_context(), host='fake-host', vcpus=4, memory_mb=(8 * 1024), local_gb=40, vcpus_used=2, memory_mb_used=(2 * 1024), local_gb_used=10, hypervisor_type='fake', hypervisor_version=1, cpu_info='{"arch":    "x86_64"}')
    cn.create()
    result = self.cmd._check_cellsv2()
    self.assertEqual(status.UpgradeCheckCode.FAILURE, result.code)
    self.assertIn('No    host    mappings    found    but    there    are    compute    nodes', result.details)
