'Does a partial assert of a dict.
Args:
required (dict): The keys and value which MUST be in \'actual\'.
actual (dict): The test result. Extra keys will not be checked.'

def assert_dict(self, required, actual):

    for key in required:
        self.assertEquals(required[key], actual[key], msg=('%s    mismatch.    %s' % (key, actual)))
