def METHOD_NAME(self, node: Node, expected_vm_capability: NodeSpace) -> None:
    lscpu = node.tools[Lscpu]
    actual_core_count = lscpu.get_core_count(force_run=True)
    expected_core_count = expected_vm_capability.core_count
    assert_that(actual_core_count).described_as(
        "The VM resize succeeded but the amount of cores that the vm has is "
        f"incorrect. Expected {expected_core_count} cores but actually had "
        f"{actual_core_count} cores"
    ).is_equal_to(expected_core_count)