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

Method test_basic

tests/config/test_application.py:125–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 assert app.foo.name == "1"
124
125 def test_basic(self):
126 app = MyApp()
127 self.assertEqual(app.name, "myapp")
128 self.assertEqual(app.running, False)
129 self.assertEqual(app.classes, [MyApp, Bar, Foo]) # type:ignore
130 self.assertEqual(app.config_file, "")
131
132 def test_app_name_set_via_constructor(self):
133 app = MyApp(name="set_via_constructor")

Callers

nothing calls this directly

Calls 1

MyAppClass · 0.70

Tested by

no test coverage detected