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

Method test_fromdictmerge2

tests/config/test_loader.py:545–552  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

543 self.assertEqual(c1.Foo.bar, 1)
544
545 def test_fromdictmerge2(self):
546 c1 = Config({"Foo": {"baz": 2}})
547 c2 = Config({"Foo": {"bar": 1}})
548 c1.merge(c2)
549 self.assertEqual(c1.Foo.__class__, Config)
550 self.assertEqual(c1.Foo.bar, 1)
551 self.assertEqual(c1.Foo.baz, 2)
552 self.assertNotIn("baz", c2.Foo)
553
554 def test_contains(self):
555 c1 = Config({"Foo": {"baz": 2}})

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected