1290
1320
length, len(obj_with_len), obj_with_len))
1292
1322
def assertLogsError(self, exception_class, func, *args, **kwargs):
1296
1326
orig_log_exception_quietly = trace.log_exception_quietly
1299
1329
orig_log_exception_quietly()
1301
1331
trace.log_exception_quietly = capture
1304
1334
trace.log_exception_quietly = orig_log_exception_quietly
1305
1335
self.assertLength(1, captured)
1307
1337
self.assertIsInstance(err, exception_class)