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

Method test_extend

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

Source from the content-addressed store, hash-verified

499
500class TestConfigContainers(TestCase):
501 def test_extend(self):
502 c = Config()
503 c.Containers.lis.extend(list(range(5)))
504 obj = Containers(config=c)
505 self.assertEqual(obj.lis, list(range(-1, 5)))
506
507 def test_insert(self):
508 c = Config()

Callers

nothing calls this directly

Calls 3

ConfigClass · 0.90
ContainersClass · 0.85
extendMethod · 0.80

Tested by

no test coverage detected