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

Method test_prepend

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

Source from the content-addressed store, hash-verified

512 self.assertEqual(obj.lis, ["a", "b", -1])
513
514 def test_prepend(self):
515 c = Config()
516 c.Containers.lis.prepend([1, 2])
517 c.Containers.lis.prepend([2, 3])
518 obj = Containers(config=c)
519 self.assertEqual(obj.lis, [2, 3, 1, 2, -1])
520
521 def test_prepend_extend(self):
522 c = Config()

Callers

nothing calls this directly

Calls 3

ConfigClass · 0.90
ContainersClass · 0.85
prependMethod · 0.80

Tested by

no test coverage detected