'This tests the happy path scenario where we have an equal number
of compute resource providers to compute nodes.'

def test_check_resource_providers_equal_rps_to_computes(self):

    self._setup_cells()
    ctxt = context.get_admin_context()
    cn = objects.ComputeNode(context=ctxt, host=uuids.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()
    self._create_resource_provider(FAKE_VCPU_INVENTORY)
    self._create_resource_provider(FAKE_IP_POOL_INVENTORY)
    result = self.cmd._check_resource_providers()
    self.assertEqual(status.UpgradeCheckCode.SUCCESS, result.code)
    self.assertIsNone(result.details)
