• Home
  • Raw
  • Download

Lines Matching refs:assertRaises

37         self.assertRaises(TypeError, operator.lt)
38 self.assertRaises(TypeError, operator.lt, 1j, 2j)
47 self.assertRaises(TypeError, operator.le)
48 self.assertRaises(TypeError, operator.le, 1j, 2j)
61 self.assertRaises(TypeError, operator.eq)
62 self.assertRaises(SyntaxError, operator.eq, C(), C())
74 self.assertRaises(TypeError, operator.ne)
75 self.assertRaises(SyntaxError, operator.ne, C(), C())
84 self.assertRaises(TypeError, operator.ge)
85 self.assertRaises(TypeError, operator.ge, 1j, 2j)
94 self.assertRaises(TypeError, operator.gt)
95 self.assertRaises(TypeError, operator.gt, 1j, 2j)
104 self.assertRaises(TypeError, operator.abs)
105 self.assertRaises(TypeError, operator.abs, None)
110 self.assertRaises(TypeError, operator.add)
111 self.assertRaises(TypeError, operator.add, None, None)
115 self.assertRaises(TypeError, operator.and_)
116 self.assertRaises(TypeError, operator.and_, None, None)
120 self.assertRaises(TypeError, operator.concat)
121 self.assertRaises(TypeError, operator.concat, None, None)
126 self.assertRaises(TypeError, operator.concat, 13, 29)
129 self.assertRaises(TypeError, operator.countOf)
130 self.assertRaises(TypeError, operator.countOf, None, None)
136 self.assertRaises(TypeError, operator.delitem, a)
137 self.assertRaises(TypeError, operator.delitem, a, None)
143 self.assertRaises(TypeError, operator.delslice, a)
144 self.assertRaises(TypeError, operator.delslice, a, None, None)
151 self.assertRaises(TypeError, operator.div, 5)
152 self.assertRaises(TypeError, operator.div, None, None)
156 self.assertRaises(TypeError, operator.floordiv, 5)
157 self.assertRaises(TypeError, operator.floordiv, None, None)
161 self.assertRaises(TypeError, operator.truediv, 5)
162 self.assertRaises(TypeError, operator.truediv, None, None)
167 self.assertRaises(TypeError, operator.getitem)
168 self.assertRaises(TypeError, operator.getitem, a, None)
173 self.assertRaises(TypeError, operator.getslice)
174 self.assertRaises(TypeError, operator.getslice, a, None, None)
180 self.assertRaises(TypeError, operator.indexOf)
181 self.assertRaises(TypeError, operator.indexOf, None, None)
183 self.assertRaises(ValueError, operator.indexOf, [4, 3, 2, 1], 0)
186 self.assertRaises(TypeError, operator.invert)
187 self.assertRaises(TypeError, operator.invert, None)
191 self.assertRaises(TypeError, operator.isCallable)
204 self.assertRaises(TypeError, operator.isMappingType)
211 self.assertRaises(TypeError, operator.isNumberType)
219 self.assertRaises(TypeError, operator.isSequenceType)
229 self.assertRaises(TypeError, operator.lshift)
230 self.assertRaises(TypeError, operator.lshift, None, 42)
233 self.assertRaises(ValueError, operator.lshift, 2, -1)
236 self.assertRaises(TypeError, operator.mod)
237 self.assertRaises(TypeError, operator.mod, None, 42)
241 self.assertRaises(TypeError, operator.mul)
242 self.assertRaises(TypeError, operator.mul, None, None)
246 self.assertRaises(TypeError, operator.neg)
247 self.assertRaises(TypeError, operator.neg, None)
254 self.assertRaises(TypeError, operator.or_)
255 self.assertRaises(TypeError, operator.or_, None, None)
259 self.assertRaises(TypeError, operator.pos)
260 self.assertRaises(TypeError, operator.pos, None)
267 self.assertRaises(TypeError, operator.pow)
268 self.assertRaises(TypeError, operator.pow, None, None)
271 self.assertRaises(TypeError, operator.pow, 1)
272 self.assertRaises(TypeError, operator.pow, 1, 2, 3)
276 self.assertRaises(TypeError, operator.repeat)
277 self.assertRaises(TypeError, operator.repeat, a, None)
297 self.assertRaises(TypeError, operator.repeat, 6, 7)
300 self.assertRaises(TypeError, operator.rshift)
301 self.assertRaises(TypeError, operator.rshift, None, 42)
304 self.assertRaises(ValueError, operator.rshift, 2, -1)
307 self.assertRaises(TypeError, operator.contains)
308 self.assertRaises(TypeError, operator.contains, None, None)
317 self.assertRaises(TypeError, operator.setitem, a)
318 self.assertRaises(TypeError, operator.setitem, a, None, None)
321 self.assertRaises(IndexError, operator.setitem, a, 4, 2)
325 self.assertRaises(TypeError, operator.setslice, a)
326 self.assertRaises(TypeError, operator.setslice, a, None, None, None)
333 self.assertRaises(TypeError, operator.sub)
334 self.assertRaises(TypeError, operator.sub, None, None)
341 self.assertRaises(TypeError, operator.truth)
342 self.assertRaises(SyntaxError, operator.truth, C())
349 self.assertRaises(TypeError, operator.xor)
350 self.assertRaises(TypeError, operator.xor, None, None)
356 self.assertRaises(TypeError, operator.is_)
363 self.assertRaises(TypeError, operator.is_not)
374 self.assertRaises(TypeError, f)
375 self.assertRaises(TypeError, f, a, 'dent')
376 self.assertRaises(TypeError, f, a, surname='dent')
378 self.assertRaises(AttributeError, f, a)
380 self.assertRaises(TypeError, f, a)
381 self.assertRaises(TypeError, operator.attrgetter)
389 self.assertRaises(TypeError, operator.attrgetter('x', (), 'y'), record)
394 self.assertRaises(SyntaxError, operator.attrgetter('foo'), C())
403 self.assertRaises(AttributeError, f, a.child)
407 self.assertRaises(AttributeError, f, a)
420 self.assertRaises(TypeError, f)
421 self.assertRaises(TypeError, f, a, 3)
422 self.assertRaises(TypeError, f, a, size=3)
424 self.assertRaises(IndexError, f, a)
429 self.assertRaises(SyntaxError, operator.itemgetter(42), C())
432 self.assertRaises(TypeError, f, a)
433 self.assertRaises(TypeError, operator.itemgetter)
439 self.assertRaises(KeyError, f, d)
451 self.assertRaises(TypeError, operator.itemgetter(2, 'x', 5), data)
454 self.assertRaises(TypeError, operator.methodcaller)
462 self.assertRaises(IndexError, f, a)
465 self.assertRaises(TypeError, f)
466 self.assertRaises(TypeError, f, a, 3)
467 self.assertRaises(TypeError, f, a, spam=3)
470 self.assertRaises(TypeError, f, a, a)