(self)
| 142 | self.checkSubclasses() |
| 143 | |
| 144 | def test_config_args(self): |
| 145 | TestConfigurable.configure(None, a=3) |
| 146 | obj = cast(TestConfig1, TestConfigurable()) |
| 147 | self.assertIsInstance(obj, TestConfig1) |
| 148 | self.assertEqual(obj.a, 3) |
| 149 | |
| 150 | obj = cast(TestConfig1, TestConfigurable(42, a=4)) |
| 151 | self.assertIsInstance(obj, TestConfig1) |
| 152 | self.assertEqual(obj.a, 4) |
| 153 | self.assertEqual(obj.pos_arg, 42) |
| 154 | |
| 155 | self.checkSubclasses() |
| 156 | # args bound in configure don't apply when using the subclass directly |
| 157 | obj = TestConfig1() |
| 158 | self.assertIsNone(obj.a) |
| 159 | |
| 160 | def test_config_class_args(self): |
| 161 | TestConfigurable.configure(TestConfig2, b=5) |
nothing calls this directly
no test coverage detected