

def test_eq(self):
    d = self.dtype(a=1, b=1, c=1)
    dd = self.dtype(a=1, b=1, c=1)
    e = self.dtype(a=1, b=1, c=3)
    f = self.dtype(a=1, b=1)
    g = self.strict_dict_class(('a', 'b', 'c', 'd'))(a=1, b=1, c=1, d=1)
    h = self.strict_dict_class(('a', 'c', 'b'))(a=1, b=1, c=1)
    i = self.strict_dict_class(('a', 'c', 'b'))(a=1, b=1, c=2)
    self.assertEqual(d, dd)
    self.assertNotEqual(d, e)
    self.assertNotEqual(d, f)
    self.assertNotEqual(d, g)
    self.assertNotEqual(f, d)
    self.assertEqual(d, h)
    self.assertNotEqual(d, i)

dataset/ETHPy150Open MongoEngine/mongoengine/tests/test_datastructures.py TestStrictDict.test_eq/original