CLN: Deprecation of assert_

#7131: Fix two instances of assertEquals that naive grepping did not find