(self)
| 158 | self.assertIsNone(obj.a) |
| 159 | |
| 160 | def test_config_class_args(self): |
| 161 | TestConfigurable.configure(TestConfig2, b=5) |
| 162 | obj = cast(TestConfig2, TestConfigurable()) |
| 163 | self.assertIsInstance(obj, TestConfig2) |
| 164 | self.assertEqual(obj.b, 5) |
| 165 | |
| 166 | obj = cast(TestConfig2, TestConfigurable(42, b=6)) |
| 167 | self.assertIsInstance(obj, TestConfig2) |
| 168 | self.assertEqual(obj.b, 6) |
| 169 | self.assertEqual(obj.pos_arg, 42) |
| 170 | |
| 171 | self.checkSubclasses() |
| 172 | # args bound in configure don't apply when using the subclass directly |
| 173 | obj = TestConfig2() |
| 174 | self.assertIsNone(obj.b) |
| 175 | |
| 176 | def test_config_multi_level(self): |
| 177 | TestConfigurable.configure(TestConfig3, a=1) |
nothing calls this directly
no test coverage detected