MCPcopy Create free account
hub / github.com/ipython/traitlets / test_dict_update

Method test_dict_update

tests/config/test_configurable.py:556–561  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

554 self.assertEqual(obj.s, {"a", 0, 1, 2, 3})
555
556 def test_dict_update(self):
557 c = Config()
558 c.Containers.d.update({"c": "d"})
559 c.Containers.d.update({"e": "f"})
560 obj = Containers(config=c)
561 self.assertEqual(obj.d, {"a": "b", "c": "d", "e": "f"})
562
563 def test_update_twice(self):
564 c = Config()

Callers

nothing calls this directly

Calls 3

ConfigClass · 0.90
ContainersClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected