MCPcopy Create free account
hub / github.com/MongoEngine/mongoengine / test_eq

Method test_eq

tests/test_datastructures.py:406–421  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

404 self.dtype(a=1, b=2, d=3)
405
406 def test_eq(self):
407 d = self.dtype(a=1, b=1, c=1)
408 dd = self.dtype(a=1, b=1, c=1)
409 e = self.dtype(a=1, b=1, c=3)
410 f = self.dtype(a=1, b=1)
411 g = self.strict_dict_class(("a", "b", "c", "d"))(a=1, b=1, c=1, d=1)
412 h = self.strict_dict_class(("a", "c", "b"))(a=1, b=1, c=1)
413 i = self.strict_dict_class(("a", "c", "b"))(a=1, b=1, c=2)
414
415 assert d == dd
416 assert d != e
417 assert d != f
418 assert d != g
419 assert f != d
420 assert d == h
421 assert d != i
422
423 def test_setattr_getattr(self):
424 d = self.dtype()

Callers

nothing calls this directly

Calls 1

strict_dict_classMethod · 0.95

Tested by

no test coverage detected