equal
deleted
inserted
replaced
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) |