tests/app/soc/logic/test_allocations.py
changeset 2142 573301607587
parent 2140 32b0731f0bf5
equal deleted inserted replaced
2141:c45f18080cc7 2142:573301607587
   140 
   140 
   141     expected = 6
   141     expected = 6
   142     actual = result['git']
   142     actual = result['git']
   143 
   143 
   144     self.failUnlessEqual(expected, actual)
   144     self.failUnlessEqual(expected, actual)
       
   145 
       
   146   def testAllOrgsLocked(self):
       
   147     """Test that when all orgs are locked the correct result is given.
       
   148     """
       
   149 
       
   150     locked_slots = {
       
   151         'asf': 20,
       
   152         'gcc': 15,
       
   153         'git': 6,
       
   154         'google': 3,
       
   155         'melange': 3,
       
   156         }
       
   157 
       
   158     result = self.allocater.allocate(locked_slots)
       
   159     self.failUnlessEqual(locked_slots, result)