db tests: replace assertEquals with assertEqual

assertEquals will be deprecated in Python 3.

This is part of blueprint assertequal

Change-Id: If364d79ea3c88d52e39b0d50230e191923121501
Merge "db tests: replace assertEquals with assertEqual"