• Home
  • Raw
  • Download

Lines Matching refs:assertRaises

67         self.assertRaises(RecursionError, repr, a)
71 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 0), [1,2,3])
72 self.assertRaises(TypeError, a.__setitem__, slice(0, 10), 1)
73 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 2), [1,2])
74 self.assertRaises(TypeError, a.__getitem__, 'x', 1)
84 self.assertRaises(StopIteration, next, r)
88 self.assertRaises(TypeError, len, reversed([1,2,3]))
99 self.assertRaises(IndexError, a.__setitem__, -3, 200)
100 self.assertRaises(IndexError, a.__setitem__, 2, 200)
103 self.assertRaises(IndexError, a.__setitem__, 0, 200)
104 self.assertRaises(IndexError, a.__setitem__, -1, 200)
105 self.assertRaises(TypeError, a.__setitem__)
141 self.assertRaises(IndexError, a.__delitem__, -3)
142 self.assertRaises(IndexError, a.__delitem__, 2)
145 self.assertRaises(IndexError, a.__delitem__, 0)
147 self.assertRaises(TypeError, a.__delitem__)
191 self.assertRaises(TypeError, a.__setitem__, slice(0, 1, 5))
193 self.assertRaises(TypeError, a.__setitem__)
243 self.assertRaises(TypeError, a.append)
262 self.assertRaises(TypeError, a.extend, None)
263 self.assertRaises(TypeError, a.extend)
291 self.assertRaises(TypeError, a.insert)
299 self.assertRaises(IndexError, a.pop, 5)
302 self.assertRaises(IndexError, a.pop)
303 self.assertRaises(TypeError, a.pop, 42, 42)
315 self.assertRaises(ValueError, a.remove, 0)
317 self.assertRaises(TypeError, a.remove)
320 self.assertRaises(ValueError, a.remove, NEVER_EQ)
331 self.assertRaises(ValueError, a.remove, ALWAYS_EQ)
343 self.assertRaises(BadExc, a.remove, BadCmp())
354 self.assertRaises(ValueError, d.remove, 'c')
360 self.assertRaises(BadExc, d.remove, 'c')
369 self.assertRaises(ValueError, a.index, 2, 0, 4)
382 self.assertRaises(ValueError, a.index, None)
392 self.assertRaises(TypeError, u.reverse, 42)
409 self.assertRaises(TypeError, u.clear, None)
433 self.assertRaises(TypeError, u.copy, None)
444 self.assertRaises(TypeError, u.sort, 42, 42)
468 self.assertRaises(TypeError, z.sort, 2)
478 self.assertRaises(ValueError, z.sort,
481 self.assertRaises(TypeError, z.sort, 42, 42, 42, 42)
499 self.assertRaises(TypeError, u.__iadd__, None)
554 self.assertRaises(KeyboardInterrupt, list, F())