error on assertRaise

There is an error on assertRaise and I don't know why.