def test_get_deltas_recheck(self):
    flavor = objects.Flavor(memory_mb=100, vcpus=10, swap=0, ephemeral_gb=2, root_gb=5)
    deltas = placement_limits._get_deltas_by_flavor(flavor, False, 0)
    expected = {'servers': 0, 'class:VCPU': 0, 'class:MEMORY_MB': 0, 'class:DISK_GB': 0}
    self.assertDictEqual(expected, deltas)
def test_get_deltas_recheck(self):
    flavor = objects.Flavor(memory_mb=100, vcpus=10, swap=0, ephemeral_gb=2, root_gb=5)
    deltas = placement_limits._get_deltas_by_flavor(flavor, False, 0)
    expected = {'servers': 0, 'class:VCPU': 0, 'class:MEMORY_MB': 0, 'class:DISK_GB': 0}
    self.assertDictEqual(expected, deltas)