'Assert that a user dict is equal to another user dict.
User dictionaries have some variable values that should be ignored in
the comparison. This method is a helper that strips those elements out
when comparing the user dictionary. This normalized these differences
that should not change the comparison.'

def assertUserDictEqual(self, expected, observed, message=''):

    if (('options' in observed) and (not observed['options']) and ('options' not in expected)):
        observed = observed.copy()
        del observed['options']
    self.assertDictEqual(expected, observed, message)
