CLN: Deprecation of assert_

#7131: Fix two instances of assertEquals that naive grepping did not find
Merge pull request #7182 from bwignall/issue7131_assertEquals

CLN: Deprecation of assert_