Use assertTrue() instead of deprecated assert_(). (GH-5526) (GH-5527)

(cherry picked from commit 95c3262762f7d0da97ad633f40bed7cd2df9814c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 file changed