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

Method test_set_update

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

Source from the content-addressed store, hash-verified

547 self.assertEqual(obj.lis, [1, -1, 2, 3])
548
549 def test_set_update(self):
550 c = Config()
551 c.Containers.s.update({0, 1, 2})
552 c.Containers.s.update({3})
553 obj = Containers(config=c)
554 self.assertEqual(obj.s, {"a", 0, 1, 2, 3})
555
556 def test_dict_update(self):
557 c = Config()

Callers

nothing calls this directly

Calls 3

ConfigClass · 0.90
ContainersClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected