CLN: use assertEqual over assert_ for better exception messages