Replace assertDictContainsSubset with stdlib ver

Code copied and adopted from unittest.TestCase class from CPython 2.7
stdlib.

Change-Id: Ifae16f947600f7a9d1f8d1a879fd914d0cf4d65e