def _assert_values_equal(self, a, values=None):
        values = values and {}

        assert_funcs = {
            'dict': self.assertDictEqual,
            'list': self.assertListEqual
        }

        for k, v in six.iteritems(values):
            assert_func = assert_funcs.get(type(v).__name__, self.assertEqual)
            assert_func(getattr(a, k, None), v)
dataset/ETHPy150Open StackStorm/st2/st2tests/st2tests/base.py/DbModelTestCase._assert_values_equal/operator `or` -> `and`