Changed most of the try: ... except *Error: ... blocks
into assert_raises(*Error)