def test_upsize_quota_delta(self):
        old_flavor = flavors.get_flavor_by_name('m1.tiny')
        new_flavor = flavors.get_flavor_by_name('m1.medium')

        expected_deltas = {
            'cores': old_flavor['vcpus'] - new_flavor['vcpus'],
            'ram': new_flavor['memory_mb'] - old_flavor['memory_mb']
        }

        deltas = compute_utils.upsize_quota_delta(self.context, new_flavor,
                                                  old_flavor)
        self.assertEqual(expected_deltas, deltas)
dataset/ETHPy150Open openstack/nova/nova/tests/unit/compute/test_compute_utils.py/ComputeUtilsQuotaDeltaTestCase.test_upsize_quota_delta/swapped operands of `-`