MCPcopy
hub / github.com/tornadoweb/tornado / test_config_str

Method test_config_str

tornado/test/util_test.py:132–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

130 self.checkSubclasses()
131
132 def test_config_str(self):
133 TestConfigurable.configure("tornado.test.util_test.TestConfig2")
134 obj = cast(TestConfig2, TestConfigurable())
135 self.assertIsInstance(obj, TestConfig2)
136 self.assertIsNone(obj.b)
137
138 obj = cast(TestConfig2, TestConfigurable(b=2))
139 self.assertIsInstance(obj, TestConfig2)
140 self.assertEqual(obj.b, 2)
141
142 self.checkSubclasses()
143
144 def test_config_args(self):
145 TestConfigurable.configure(None, a=3)

Callers

nothing calls this directly

Calls 3

checkSubclassesMethod · 0.95
TestConfigurableClass · 0.85
configureMethod · 0.45

Tested by

no test coverage detected