def test_enforce_num_instances_and_flavor_disabled(self):
    self.flags(driver='nova.quota.NoopQuotaDriver', group='quota')
    count = placement_limits.enforce_num_instances_and_flavor(self.context, uuids.project_id, 'flavor', False, 0, 42)
    self.assertEqual(42, count)
def test_enforce_num_instances_and_flavor_disabled(self):
    self.flags(driver='nova.quota.NoopQuotaDriver', group='quota')
    count = placement_limits.enforce_num_instances_and_flavor(self.context, uuids.project_id, 'flavor', False, 0, 42)
    self.assertEqual(42, count)