Fix misused assertTrue in unit tests

The patch merged under review https://review.openstack.org/#/c/61816/3
still uses assertTrue instead of assertEqual.

This patch properly corrects this.

Change-Id: I09fd4b7355dd721b513febd0669cb1368b5cda19
Closes-Bug: #1226374
Merge "Fix misused assertTrue in unit tests"