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

Method test_getitem_section

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

Source from the content-addressed store, hash-verified

574 self.assertIn("Foo", cfg)
575
576 def test_getitem_section(self):
577 cfg = Config()
578 self.assertNotIn("Foo", cfg)
579 Foo = cfg["Foo"]
580 assert isinstance(Foo, Config)
581 self.assertIn("Foo", cfg)
582
583 def test_getattr_not_section(self):
584 cfg = Config()

Callers

nothing calls this directly

Calls 1

ConfigClass · 0.90

Tested by

no test coverage detected