Lines Matching refs:assertRaises
51 with self.assertRaises(ValueError):
63 self.assertRaises(ValueError, func,
65 self.assertRaises(ValueError, func,
70 self.assertRaises(ValueError, func,
72 self.assertRaises(ValueError, func,
76 self.assertRaises(ValueError, func,
78 self.assertRaises(ValueError, func,
82 self.assertRaises(ValueError, func,
84 self.assertRaises(ValueError, func,
87 self.assertRaises(ValueError, func,
93 self.assertRaises(ValueError, func,
101 self.assertRaises(ValueError, func,
106 self.assertRaises(ValueError, func,
108 self.assertRaises(ValueError, func,
119 self.assertRaises(ValueError, time.strftime, '',
122 self.assertRaises(ValueError, time.strftime, '',
124 self.assertRaises(ValueError, time.strftime, '',
127 self.assertRaises(ValueError, time.strftime, '',
129 self.assertRaises(ValueError, time.strftime, '',
132 self.assertRaises(ValueError, time.strftime, '',
134 self.assertRaises(ValueError, time.strftime, '',
137 self.assertRaises(ValueError, time.strftime, '',
139 self.assertRaises(ValueError, time.strftime, '',
142 self.assertRaises(ValueError, time.strftime, '',
144 self.assertRaises(ValueError, time.strftime, '',
147 self.assertRaises(ValueError, time.strftime, '',
151 self.assertRaises(ValueError, time.strftime, '',
157 self.assertRaises(ValueError, time.strftime, '',
160 self.assertRaises(ValueError, time.strftime, '',
162 self.assertRaises(ValueError, time.strftime, '',
190 self.assertRaises(TypeError, time.asctime, 0)
191 self.assertRaises(TypeError, time.asctime, ())
196 self.assertRaises(OverflowError, time.asctime,
198 self.assertRaises(TypeError, time.asctime, 0)
199 self.assertRaises(TypeError, time.asctime, ())
200 self.assertRaises(TypeError, time.asctime, (0,) * 10)
282 self.assertRaises(ValueError, func, unreasonable)