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

Method test_insert

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

Source from the content-addressed store, hash-verified

505 self.assertEqual(obj.lis, list(range(-1, 5)))
506
507 def test_insert(self):
508 c = Config()
509 c.Containers.lis.insert(0, "a")
510 c.Containers.lis.insert(1, "b")
511 obj = Containers(config=c)
512 self.assertEqual(obj.lis, ["a", "b", -1])
513
514 def test_prepend(self):
515 c = Config()

Callers

nothing calls this directly

Calls 3

ConfigClass · 0.90
ContainersClass · 0.85
insertMethod · 0.80

Tested by

no test coverage detected