Add check for deprecated method assert_

The proper one is assertTrue, assert_ is deprecated as of 2.7.

There were some projects using assert_().
https://review.openstack.org/#/c/44456/

This patch will prevent code from deteriorating.

Change-Id: Id6f0ed85eb62d6ea9a1f352427882743cc3a7101