Port to Python v3.3
used 2to3
+ manual editing of assertEquals --> assertEqual (as per warning) and ctx.exception.message --> str(ctx.exception)