tests/app/soc/logic/test_allocations.py
changeset 1721 9acf4fe1b9bb
parent 1718 ca34f4a8c61b
child 1751 17c7a7a48dc7
equal deleted inserted replaced
1720:33e34c4716d2 1721:9acf4fe1b9bb
   218     adjusted_slots = {'gcc': 10}
   218     adjusted_slots = {'gcc': 10}
   219 
   219 
   220     with_adjusting = self.allocater.allocate(locked_slots, adjusted_slots)
   220     with_adjusting = self.allocater.allocate(locked_slots, adjusted_slots)
   221     without_adjusting = self.allocater.allocate(locked_slots, {})
   221     without_adjusting = self.allocater.allocate(locked_slots, {})
   222 
   222 
   223     expected = without_adjusting['gcc'] + 10
   223     expected = without_adjusting['gcc']
   224     actual = with_adjusting['gcc']
   224     actual = with_adjusting['gcc']
   225 
   225 
   226     self.failUnlessEqual(expected, actual)
   226     self.failUnless(actual > expected)