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

Method test_config_multi_level

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

Source from the content-addressed store, hash-verified

174 self.assertIsNone(obj.b)
175
176 def test_config_multi_level(self):
177 TestConfigurable.configure(TestConfig3, a=1)
178 obj = cast(TestConfig3A, TestConfigurable())
179 self.assertIsInstance(obj, TestConfig3A)
180 self.assertEqual(obj.a, 1)
181
182 TestConfigurable.configure(TestConfig3)
183 TestConfig3.configure(TestConfig3B, b=2)
184 obj2 = cast(TestConfig3B, TestConfigurable())
185 self.assertIsInstance(obj2, TestConfig3B)
186 self.assertEqual(obj2.b, 2)
187
188 def test_config_inner_level(self):
189 # The inner level can be used even when the outer level

Callers

nothing calls this directly

Calls 2

TestConfigurableClass · 0.85
configureMethod · 0.45

Tested by

no test coverage detected