Lines Matching refs:assertTrue
76 self.assertTrue(v == '.' and matrix[i][j] == ' ' or v == matrix[i][j])
81 self.assertTrue(mim.compute_initial_allocation())
90 self.assertTrue(mim.matrix_ == [['Y'], ['Y'], ['Y']])
97 self.assertTrue(mim.matrix_ == [['Y', 'Y', 'Y']])
106 self.assertTrue(mim.matrix_ == [[' ', ' ', 'X'], ['X', ' ', ' '],
109 self.assertTrue(mim.matrix_ == [[' ', 'Y', 'X'], ['X', ' ', 'Y'],
119 self.assertTrue(mim.matrix_ == [[' ', ' ', 'X'], ['X', ' ', ' '],
122 self.assertTrue(mim.matrix_ == [[' ', 'Y', 'X'], ['X', ' ', 'Y'],
133 self.assertTrue(mim.matrix_ == [[' ', 'Y', 'X'], ['X', ' ', 'Y'],
144 self.assertTrue(mim.matrix_ == [[' ', 'Y', 'X'], ['X', ' ', 'Y'],
154 self.assertTrue(mim.compute_initial_allocation())
155 self.assertTrue(mim.matrix_ == [['X', 'X', 'Y'], ['X', 'X', 'Y'],
162 self.assertTrue(mim.compute_initial_allocation())
163 self.assertTrue(mim.allocate(duts[0]) == labels[0])
164 self.assertTrue(mim.allocate(duts[0]) == labels[1])
165 self.assertTrue(mim.allocate(duts[0]) is None)
166 self.assertTrue(mim.matrix_[0][0] == '_')
167 self.assertTrue(mim.matrix_[1][0] == '_')
168 self.assertTrue(mim.allocate(duts[1]) == labels[1])
179 self.assertTrue(mim.compute_initial_allocation())
183 self.assertTrue(mim.matrix_[i][j] == 'Y')
185 self.assertTrue(mim.matrix_[i][j] == ' ')
186 self.assertTrue(mim.allocate(duts[3]).name == 'l3')
203 self.assertTrue(mim.compute_initial_allocation())
243 self.assertTrue(mim.allocate(mim.duts_[2]) == mim.labels_[0])
244 self.assertTrue(mim.allocate(mim.duts_[3]) == mim.labels_[2])
245 self.assertTrue(mim.allocate(mim.duts_[0]) == mim.labels_[1])
246 self.assertTrue(mim.allocate(mim.duts_[1]) == mim.labels_[2])
247 self.assertTrue(mim.allocate(mim.duts_[3]) == mim.labels_[1])
248 self.assertTrue(mim.allocate(mim.duts_[3]) == mim.labels_[0])
249 self.assertTrue(mim.allocate(mim.duts_[3]) is None)
250 self.assertTrue(mim.allocate(mim.duts_[2]) is None)
251 self.assertTrue(mim.allocate(mim.duts_[1]) == mim.labels_[1])
252 self.assertTrue(mim.allocate(mim.duts_[1]) == None)
253 self.assertTrue(mim.allocate(mim.duts_[0]) == None)
254 self.assertTrue(mim.label_duts_[0] == [2, 3])
255 self.assertTrue(mim.label_duts_[1] == [0, 3, 1])
256 self.assertTrue(mim.label_duts_[2] == [3, 1])
257 self.assertTrue(mim.allocate_log_ == [(0, 2), (2, 3), (1, 0), (2, 1),
299 self.assertTrue(mim.allocate(mim.duts_[1]) is None)
300 self.assertTrue(mim.allocate(mim.duts_[2]) is None)
301 self.assertTrue(mim.allocate(mim.duts_[0]) == mim.labels_[0])
302 self.assertTrue(mim.allocate(mim.duts_[0]) == mim.labels_[1])
303 self.assertTrue(mim.allocate(mim.duts_[0]) == mim.labels_[2])
304 self.assertTrue(mim.allocate(mim.duts_[0]) is None)