(self)
| 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 |
nothing calls this directly
no test coverage detected