def test_get_legacy_default_limits(self):
    reglimits = {'servers': 1, 'class:VCPU': 2}
    self.useFixture(limit_fixture.LimitFixture(reglimits, {}))
    limits = placement_limits.get_legacy_default_limits()
    self.assertEqual({'cores': 2, 'instances': 1, 'ram': 0}, limits)
def test_get_legacy_default_limits(self):
    reglimits = {'servers': 1, 'class:VCPU': 2}
    self.useFixture(limit_fixture.LimitFixture(reglimits, {}))
    limits = placement_limits.get_legacy_default_limits()
    self.assertEqual({'cores': 2, 'instances': 1, 'ram': 0}, limits)